Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Functional Programming  /
Slot

  • # represents the first argument supplied to a pure function.
  • # n represents the n argument.
  • # is used to represent arguments or formal parameters in pure functions of the form body & or Function[ body ].
  • is equivalent to Slot[ ] or Slot[1].
  • # n is equivalent to Slot[ n ]. n must be a non-negative integer.
  • #0 gives the head of the function, i.e., the pure function itself.
  • See the Mathematica book: Section 2.2.5.

    Further Examples

    The element in the first slot is raised to the power of the element in the second slot.

    In[1]:=

    Out[1]=

    See the Further Examples for Function.


    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.