ListTools
Enumerate
enumerate the operands of a list
Calling Sequence
Parameters
Description
Examples
Enumerate(L)
Enumerate(L, n)
L
-
lists
n
algebraic expression
The Enumerate(L) function converts the list into a list of lists, where each sublist has as its first operand the position of the original operand, and the second argument is that operand itself.
The Enumerate(L, n) function starts the enumeration at the value n.
with⁡ListTools:
L≔0.,0.84,0.91,0.14,−0.76,−0.96,−0.28,0.41,−0.54
Enumerate⁡L
1,0.,2,0.84,3,0.91,4,0.14,5,−0.76,6,−0.96,7,−0.28,8,0.41,9,−0.54
Enumerate⁡L,0
0,0.,1,0.84,2,0.91,3,0.14,4,−0.76,5,−0.96,6,−0.28,7,0.41,8,−0.54
See Also
type[list]
Download Help Document