Extracted from Pike v7.3 release 45 at 2002-06-04.
pike.roxen.com
[Top]

Method aggregate_multiset()


Method aggregate_multiset

multiset aggregate_multiset(mixed ... elems)

Description

Construct a multiset.

Construct a multiset with the arguments as indices. This method is most useful when constructing multisets with map or similar; generally, the multiset literal syntax is handier:

(< elem1, elem2, ... >)

See also

sizeof, multisetp, mkmultiset


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