Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


represents the pattern object obj, assigned the name s.


  • The name s must be a symbol.
  • The object obj can be any pattern object.
  • When a transformation rule is used, any occurrence of s on the righthand side is replaced by whatever expression it matched on the lefthand side.
  • The operator has a comparatively low precedence. The expression is thus interpreted as , not .
  • The form s_ is equivalent to s:_. Similarly, s_h is equivalent to , s__ to s:__, and so on.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Give a name to lists of integers:

Click for copyable input
Click for copyable input
Introduced in 1988