TagSet

WMA link


TagSet[f, expr, value]

f /: expr = value

assigns value to expr, associating the corresponding assignment with the symbol f.

Create an upvalue without using UpSet:

The symbol f must appear as the ultimate head of lhs or as the head of an element in lhs:

SetDelayed
TagSetDelayed