Mathematica 9 is now available

TagSet

Usage

f/: lhs = rhsrhs赋为lhs的值,并和符号 f 关联这种赋值。


Notes

TagSet 合适地定义上值或下值。
• 在 f/: lhs = rhs 中的符号 f 必须作为lhs的头,头的头,lhs的元素之一,或元素之一的头出现在lhs中,
• 通常情况是 f/: h[f[args]] = rhs.
• 可以通过输入 ?symbol看所有的和一个特殊符号相关联的规则。
• 如果 flhs中出现几次,则 f/: lhs = rhs 对每次出现关联这种赋值。
• 当以符号形式出现时,处理为范围结构(参见A.3.8节)。
• 参见Mathematica 全书: 2.4.10 and 节 A.5.2.
• 同时参见: Set, UpSet.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.