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 ^(th) argument.

Details

  • ## 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.

Examples

open allclose all

Basic Examples  (2)

## represents the complete sequence of arguments supplied to the pure function:

In[1]:=
Click for copyable input
Out[1]=

Start with the second argument:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Applications  (2)

Properties & Relations  (2)

Possible Issues  (1)

See Also

Slot  Function  Sequence  BlankNullSequence

Tutorials

Introduced in 1988
(1.0)