Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

TagSet

Usage

f/: lhs = rhs assigns rhs to be the value of lhs, and associates the assignment with the symbol f.


Notes

TagSet defines upvalues or downvalues as appropriate.
• The symbol f in f/: lhs = rhs must appear in lhs as the head of lhs, the head of the head, one of the elements of lhs, or the head of one of the elements.
• A common case is f/: h[f[args]] = rhs.
• You can see all the rules associated with a particular symbol by typing ?symbol.
• If f appears several times in lhs, then f/: lhs = rhs associates the assignment with each occurrence.
• When it appears in symbolic form, TagSet is treated as a scoping construct (see Section A.3.8).
• See also: Set, UpSet.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: