interface SortedMultiSet.NonEmpty<T>
A type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the SortedMultiSet API documentation
Extends: Streamable.NonEmpty<T>
, SortedMultiSet<T>
Type parameters
Name | Description |
---|---|
T | the value type |
note
- The
SortedMultiSet
uses the contexts'SortedMap
mapContext
to sort the values.
example
const s1 = SortedMultiSet.empty<string>()
const s2 = SortedMultiSet.of('a', 'b', 'a', 'c')
Methods
stream
undocumented
stream
Definition
stream(options?: {
reversed?: boolean;
}):
Stream.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
options | { reversed?: boolean; } |