Basic Examples
Basic Examples
Find the highest numbered slot in a function:
In[]:=
2
#
Out[]=
1
In[]:=
Out[]=
2
In[]:=
y
z
Out[]=
3
In this function, slot 2 goes unused, but it will still be counted:
In[]:=
Out[]=
3
Scope
Scope
Slots in inner functions will not be counted:
In[]:=
Out[]=
1
A function that uses will be counted as having infinite arguments:
In[]:=
Out[]=
∞
String slots will be counted as being part of the first argument:
In[]:=
Out[]=
1
In[]:=
Out[]=
2
ArgumentCount
In[]:=
Out[]=
3
Options
Options
IgnoreSlotSequence
IgnoreSlotSequence
A function that uses will be counted as having infinite arguments:
In[]:=
Out[]=
∞
This behavior can be changed with the option:
"IgnoreSlotSequence"
In[]:=
Out[]=
2