UpSet
✖
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 allBasic Examples (1)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
In[1]:=1

✖
https://wolfram.com/xid/0wgzeoz-g0xwv
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0wgzeoz-8gjdi
Out[2]=2

If several symbols appear in the left-hand side, upvalues for all of them are defined:
In[1]:=1

✖
https://wolfram.com/xid/0wgzeoz-da10ki
In[2]:=2

✖
https://wolfram.com/xid/0wgzeoz-emo27v
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0wgzeoz-j7j950
Out[3]=3

Applications (1)Sample problems that can be solved with this function
Properties & Relations (2)Properties of the function, and connections to other functions
^= defines upvalues in the same way as using a tag does:
In[1]:=1

✖
https://wolfram.com/xid/0wgzeoz-hd2hgj
In[2]:=2

✖
https://wolfram.com/xid/0wgzeoz-gfpi9
Out[2]=2

^= defines upvalues; = defines downvalues:
In[1]:=1

✖
https://wolfram.com/xid/0wgzeoz-cl9ax7
In[2]:=2

✖
https://wolfram.com/xid/0wgzeoz-djpt9m
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0wgzeoz-gi4pfi
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0wgzeoz-ouk3qv
Out[4]=4

Wolfram Research (1988), UpSet, Wolfram Language function, https://reference.wolfram.com/language/ref/UpSet.html.
✖
Wolfram Research (1988), UpSet, Wolfram Language function, https://reference.wolfram.com/language/ref/UpSet.html.
Text
Wolfram Research (1988), UpSet, Wolfram Language function, https://reference.wolfram.com/language/ref/UpSet.html.
✖
Wolfram Research (1988), UpSet, Wolfram Language function, https://reference.wolfram.com/language/ref/UpSet.html.
CMS
Wolfram Language. 1988. "UpSet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UpSet.html.
✖
Wolfram Language. 1988. "UpSet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UpSet.html.
APA
Wolfram Language. (1988). UpSet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UpSet.html
✖
Wolfram Language. (1988). UpSet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UpSet.html
BibTeX
✖
@misc{reference.wolfram_2025_upset, author="Wolfram Research", title="{UpSet}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/UpSet.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_upset, organization={Wolfram Research}, title={UpSet}, year={1988}, url={https://reference.wolfram.com/language/ref/UpSet.html}, note=[Accessed: 29-March-2025
]}