Consider the case where a symbol has multiple definitions attached to it,
a /: Subscript[a,2] := 1
a[b_] := 2
a[b_, c_] := 3
How does one clear (/unset/remove) only one of those definitions while leaving the others intact?
|
Consider the case where a symbol has multiple definitions attached to it,
How does one clear (/unset/remove) only one of those definitions while leaving the others intact? |
||||
|
You can use
You need to use the same pattern in |
|||
|
|
|
You can use
Unsetting the definition for
It works similarly for |
|||
|
|
=.works nicely for removing any of the last two definitions. You needTagUnset[]to remove the first one. – 0x4A4D♦ Jan 18 '12 at 0:32