This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / Functional Programming  /
SlotSequence

  • ## represents the sequence of arguments supplied to a pure function.
  • ## n represents the sequence of arguments supplied to a pure function, starting with the n argument.
  • ## is used to represent sequences of arguments in pure functions of the form body & or Function[ body ].
  • ## is equivalent to SlotSequence[ ] or SlotSequence[1].
  • ## n is equivalent to SlotSequence[ n ]. n must be a positive integer.
  • A sequence of arguments supplied to a pure function is "spliced" into the body of the function wherever ## and so on appear.
  • See the Mathematica book: Section 2.2.5.
  • See also: Sequence.

    Further Examples

    ## stands for all arguments.

    In[1]:=

    Out[1]=

    ##2 stands for all arguments except the first one.

    In[2]:=

    Out[2]=