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

x/rimbu/core/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>>
import { type VariantMap } from "https://deno.land/x/rimbu@1.2.0/core/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