Creates a new Collection.Indexed.
Note: Collection.Indexed
is a conversion function and not a class, and
does not use the new
keyword during construction.
Creates a Collection.Keyed
Similar to Collection()
, however it expects collection-likes of [K, V]
tuples if not constructed from a Collection.Keyed or JS Object.
Note: Collection.Keyed
is a conversion function and not a class, and
does not use the new
keyword during construction.
Similar to Collection()
, but always returns a Collection.Set.
Note: Collection.Set
is a factory function and not a class, and does
not use the new
keyword during construction.
Generated using TypeDoc
The
Collection
is a set of (key, value) entries which can be iterated, and is the base class for all collections inimmutable
, allowing them to make use of all the Collection methods (such asmap
andfilter
).Note: A collection is always iterated in the same order, however that order may not always be well defined, as is the case for the
Map
andSet
.Collection is the abstract base class for concrete data structures. It cannot be constructed directly.
Implementations should extend one of the subclasses,
Collection.Keyed
,Collection.Indexed
, orCollection.Set
.