import { SortedSet } from "https://deno.land/x/rimbu@0.13.5/core/main/index.ts";
Interfaces
A mutable | |
A context instance for a | |
A non-empty type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the SortedSet API documentation | |
Utility interface that provides higher-kinded types for this collection. |
import { type SortedSet } from "https://deno.land/x/rimbu@0.13.5/core/main/index.ts";
A type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the SortedSet API documentation
Examples
Example 1
Example 1
const s1 = SortedSet.empty<string>()
const s2 = SortedSet.of('a', 'b', 'c')
Methods
Returns a Stream of sorted values of this collection within the given keyRange
.
Returns a Stream of sorted values of this collection within the given range
index range.
Returns the minimum value of the SortedSet, or a fallback value (default: undefined) if the SortedSet is empty.
Returns the maximum value of the SortedSet, or a fallback value (default: undefined) if the SortedSet is empty.
Returns the value at the given index of the value sort order of the SortedSet, or a fallback value (default: undefined) if the index is out of bounds.
Returns a SortedSet containing the the first amount
of value of this SortedSet.
Returns a SortedSet containing all but the the first amount
of value of this SortedSet.
Returns a SortedSet containing only those values that are within the given range
index range of the value
sort order.
import { SortedSet } from "https://deno.land/x/rimbu@0.13.5/core/main/index.ts";