UpSet

lhs^=rhs

assigns rhs to be the value of lhs, and associates the assignment with symbols that occur at level one in lhs.

Details

  • f[g[x]]=value makes an assignment associated with f. f[g[x]]^=value makes an assignment associated instead with g.
  • UpSet associates an assignment with all the distinct symbols that occur either directly as arguments of lhs, or as the heads of arguments of lhs.

Examples

open allclose all

Basic Examples  (1)

Define a symbolic property of a symbol:

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

Scope  (2)

Applications  (1)

Properties & Relations  (2)

See Also

TagSet  UpSetDelayed  UpValues  Unset  ClearAll

Tutorials

Introduced in 1988
(1.0)