Skip to main content

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

NameDescription
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.TypesUtility interface that provides higher-kinded types for this collection.

Static Methods

createContext

Returns a new MultiSet context instance based on the given options.

Definition

createContext<UT>(options: {
    countMapContext: RMap.Context<UT>;
  }): MultiSet.Context<UT>;

Type parameters

NameDescription
UTthe upper element type for which the context can create instances

Parameters

NameTypeDescription
options{
    countMapContext: RMap.Context<UT>;
  }
an object containing the following properties:
- countMapContext: the map context to use for key to count mapping