PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Built-in
Mathematica
Symbol
Pure Functions
Tutorials »
|
Slot
Function
Sequence
BlankNullSequence
See Also »
|
Functional Programming
More About »
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.
MORE INFORMATION
##
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
CLOSE ALL
Basic Examples
(2)
##
represents the complete sequence of arguments supplied to the pure function:
In[1]:=
Out[1]=
Start with the second argument:
In[1]:=
Out[1]=
Scope
(2)
Applications
(2)
Properties & Relations
(2)
Possible Issues
(1)
SEE ALSO
Slot
Function
Sequence
BlankNullSequence
TUTORIALS
Pure Functions
MORE ABOUT
Functional Programming
New in 1
© 2008 Wolfram Research, Inc.