Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/core/menu/set/index.ts>Ordered.Hashed.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface Ordered.Hashed.NonEmpty
implements [OrderedSetBase.NonEmpty]<T, OrderedHashSet.Types>, Omit<OrderedHashSet<T>, keyof OrderedSetBase.NonEmpty<any, any>>, [Streamable.NonEmpty]<T>
import { type Ordered } from "https://deno.land/x/rimbu@0.13.1/core/menu/set/index.ts";
const { NonEmpty } = Ordered.Hashed;

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

Examples

Example 1

const s1 = OrderedHashSet.empty<string>()
const s2 = OrderedHashSet.of('a', 'b', 'c')

Methods

stream(): Stream.NonEmpty<T>