Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/ordered/set/interface/ordered-set.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.13.5/ordered/set/interface/ordered-set.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.13.5/ordered/set/interface/ordered-set.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.13.5/ordered/set/interface/ordered-set.ts";