Entries - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MultiSet/Entries

return the entries of a MultiSet

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Entries( M, opt )

Parameters

M

-

MultiSet; a MultiSet

opt

-

optional; option of the form output = list or output = set, specifying the form to return (default: output = set)

Description

• 

Entries( M ) returns the entries of the MultiSet M as a set of lists, where the first element of each list is the MultiSet member and the second element is its multiplicity in M.  This is the same as the result of Entries( M, output=set ).

• 

Entries( M, output=list ) returns the same result as Entries( M ) but as a list of lists rather than as a set of lists.

Examples

MMultiSeta=2,b=5

Ma,2,b,5

(1)

typeM,MultiSet

true

(2)

typeM,set

false

(3)

EntriesM

a,2,b,5

(4)

whattypeEntriesM

set

(5)

EntriesM,output=list

a,2,b,5

(6)

whattypeEntriesM,output=list

list

(7)

Compatibility

• 

The MultiSet/Entries command was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

MultiSet

MultiSet/Members