This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

UpValues

UpValues[f]
gives a list of transformation rules corresponding to all upvalues defined for the symbol f.
  • You can specify the upvalues for f by making an assignment of the form UpValues[f]=list.
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]=
New in 2 | Last modified in 3