pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]

aggregate_multiset()


Method aggregate_multiset

multiset aggregate_multiset(mixed ... elems)

Description

Construct a multiset with the arguments as indices. The multiset will not contain any values. This method is most useful when constructing multisets with map or similar; generally, the multiset literal syntax is handier: (<elem1, elem2, ...>) With it, it's also possible to construct a multiset with values: (<index1: value1, index2: value2, ...>)

See also

sizeof() , multisetp() , mkmultiset()

Module reference for Pike v7.8 release 116, 2008-12-31