Mathematica 9 is now available

BlankNullSequence (___)Pattern (:)

Alternatives

FilledSmallSquare | | ... is a pattern object which represents any of the patterns .

FilledSmallSquare Example: _Integer | _Real represents an object with head either Integer or Real.

FilledSmallSquare Unless the same set of pattern names appears in all of the , you cannot use these pattern names on the right-hand side of transformation rules for the pattern. Thus, for example, you can use x in a[x_] | b[x_], but you can use neither x nor y in a[x_] | b[y_].

FilledSmallSquare See The Mathematica Book: Section 2.3.6.

FilledSmallSquare See also: Optional.

Further Examples

BlankNullSequence (___)Pattern (:)



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.