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

x/rimbu/collection-types/main/index.ts>RMap.NonEmpty

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

A non-empty type-invariant immutable 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 RMap API documentation