^=
)
^=
expression UpSet
creates an upvalue:
a[b] ^= 3;
DownValues[a]
UpValues[b]
You can use UpSet
to specify special values like format values.
However, these values will not be saved in UpValues
:
Format[r] ^= "custom";
r
UpValues[r]