Skip to main content
Module

x/rimbu/mod.ts>VariantMap.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface VariantMap.NonEmpty
implements [VariantMapBase.NonEmpty]<K, V, VariantMap.Types>, Omit<VariantMap<K, V>, keyof VariantMapBase.NonEmpty<any, any, any>>, [Streamable.NonEmpty]<readonly [K, V]>
import { type VariantMap } from "https://deno.land/x/rimbu@0.12.3/mod.ts";
const { NonEmpty } = VariantMap;

A non-empty type-variant Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the VariantMap API documentation