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

x/rimbu/multiset/main/index.ts>VariantMultiSet.NonEmpty

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

A non-empty type-variant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the VariantMultiSet API documentation