This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Assignments  /
TagUnset

  • f /: lhs =. removes any rules defined for lhs, associated with the symbol f.
  • Rules are removed only when their left-hand side is identical to lhs, and the tests in Condition given on the right-hand side are also identical.
  • See the Mathematica book: Section A.2.7Section A.5.4.
  • See also: Clear, Unset.

    Further Examples

    This defines a rule for numerical values of fff and associates it with fff.

    In[1]:=

    The rule applies.

    In[2]:=

    Out[2]=

    The rule is undone with TagUnset.

    In[3]:=

    The rule no longer applies applies.

    In[4]:=

    Out[4]=