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>Hashed.NonEmpty

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

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 HashSet API documentation

Examples

Example 1

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