UpValues

UpValues[f]

gives a list of transformation rules corresponding to all upvalues defined for the symbol f.

Details and Options

  • You can specify the upvalues for f by making an assignment of the form UpValues[f]=list.
  • The list returned by UpValues has elements of the form HoldPattern[lhs]:>rhs.

Examples

open allclose all

Basic Examples  (1)

Define upvalues for a symbol g:

In[1]:=
Click for copyable input

These are the upvalues associated with g:

In[2]:=
Click for copyable input
Out[2]=

Scope  (2)

Applications  (1)

Properties & Relations  (3)

See Also

UpSet  Set  DownValues  HoldAllComplete  ClearAll  Information  Save

Tutorials

Introduced in 1991
(2.0)
| Updated in 1996
(3.0)