interface HashMultiSet.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 HashMultiSet API documentation
Extends: Streamable.NonEmpty<T>, HashMultiSet<T>
Type parameters
| Name | Description |
|---|---|
| T | the value type |
note
- The
HashMultiSetuses the contexts'HashMapmapContextto hash the values.
example
const m1 = HashMultiSet.empty<string>()
const m2 = HashMultiSet.of('a', 'b', 'a', 'c')
Methods
stream
undocumented
stream