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:

Scope  (2)

^= defines upvalues:

If several symbols appear in the left-hand side, upvalues for all of them are defined:

Applications  (1)

Build a database of exchange rates:

Properties & Relations  (2)

^= defines upvalues in the same way as using a tag does:

^= defines upvalues; = defines downvalues:

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.

CMS

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

BibTeX

@misc{reference.wolfram_2024_upset, author="Wolfram Research", title="{UpSet}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/UpSet.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_upset, organization={Wolfram Research}, title={UpSet}, year={1988}, url={https://reference.wolfram.com/language/ref/UpSet.html}, note=[Accessed: 22-November-2024 ]}