enumerate the operands of a list - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Tables, lists, and sets : ListTools Package : ListTools/Enumerate

ListTools[Enumerate] - enumerate the operands of a list

Calling Sequence

Enumerate(L)

Enumerate(L, n)

Parameters

L

-

lists

n

-

algebraic expression

Description

• 

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.

Examples

withListTools:

L:=0.,0.84,0.91,0.14,0.76,0.96,0.28,0.41,0.54

L:=0.,0.84,0.91,0.14,0.76,0.96,0.28,0.41,0.54

(1)

EnumerateL

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

(2)

EnumerateL,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

(3)

See Also

ListTools, type[list]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam