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

x/rimbu/multiset/main/interface/generic/generic.ts>MultiSet.NonEmpty

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

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