DOCUMENTATION CENTER SEARCH
Mathematica
>
Built-in
Mathematica
Symbol
Pure Functions
Tutorials »
|
SlotSequence
Function
See Also »
|
Functional Programming
Mathematica Syntax
More About »
Slot
(#)
#
represents the first argument supplied to a pure function.
#
n
represents the
n
argument.
MORE INFORMATION
#
is used to represent arguments or formal parameters in pure functions of the form
body
&
or
Function
[
body
]
.
#
is equivalent to
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.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
#
represents the first argument of a pure function:
In[1]:=
Out[1]=
Use numbered arguments:
In[1]:=
Out[1]=
Scope
(1)
Generalizations & Extensions
(1)
Applications
(1)
Properties & Relations
(3)
Possible Issues
(2)
Neat Examples
(1)
SEE ALSO
SlotSequence
Function
TUTORIALS
Pure Functions
MORE ABOUT
Functional Programming
Mathematica Syntax
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1
© 2008 Wolfram Research, Inc.