Skip to main content
Module

x/rimbu/mod.ts>OrderedSet

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace OrderedSet
import { OrderedSet } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

Interfaces

A mutable OrderedSet builder used to efficiently create new immutable instances. See the Set documentation and the OrderedSet.Builder API documentation

A non-empty type-invariant immutable Ordered SortedSet of value type T. In the Set, there are no duplicate values. See the Set documentation and the OrderedSet API documentation

Utility interface that provides higher-kinded types for this collection.

interface OrderedSet
import { type OrderedSet } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

A type-invariant immutable Ordered Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the OrderedSet API documentation

Examples

Example 1

const s1 = OrderedSortedSet.empty<string>()
const s2 = OrderedSortedSet.of('a', 'b', 'c')
variable OrderedSet
import { OrderedSet } from "https://deno.land/x/rimbu@0.14.0/mod.ts";