namespace MultiSet
A type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the MultiSet API documentation
Companion interface: MultiSet<T>
Interfaces
Name | Description |
---|---|
MultiSet.Builder<T> | A mutable MultiSet builder used to efficiently create new immutable instances. See the MultiSet documentation and the MultiSet.Builder API documentation |
MultiSet.Context<UT> | A context instance for MultiSet implementations that acts as a factory for every instance of this type of collection. |
MultiSet.NonEmpty<T> | A non-empty type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the MultiSet API documentation |
MultiSet.Types | Utility interface that provides higher-kinded types for this collection. |
Static Methods
createContext
Returns a new MultiSet context instance based on the given options
.
createContext
options
.Definition
createContext<UT>(options: {
countMapContext:
RMap.Context
<UT>;
}):
MultiSet.Context
<UT>;
Type parameters
Name | Description |
---|---|
UT | the upper element type for which the context can create instances |
Parameters
Name | Type | Description |
---|---|---|
options | { countMapContext: RMap.Context <UT>; } | an object containing the following properties: - countMapContext: the map context to use for key to count mapping |