ListTools
Collect
interspace the elements of a list with an object
Calling Sequence
Parameters
Description
Examples
Compatibility
Collect( L )
L
-
list
The Collect( L ) function produces a list of pairs [ expr, f ] from the input list L, for which expr is an expression occurring in L and f is the (positive) integral number of occurrences of expr in L.
Note that the order of the output is session dependent, and is therefore not defined.
with⁡ListTools:
Collect⁡
Collect⁡3
3,1
Collect⁡2,2,3,2,4,2,3,5,4
2,4,3,2,4,2,5,1
The ListTools[Collect] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
member
numboccur
Download Help Document
What kind of issue would you like to report? (Optional)