Mathematica 9 is now available
 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]=



    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.