Skip to main content
Module

x/rimbu/multimap/custom/index.ts>MultiMapBase.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface MultiMapBase.NonEmpty
implements [VariantMultiMapBase.NonEmpty]<K, V, Tp>, Omit<MultiMapBase<K, V, Tp>, keyof VariantMultiMapBase.NonEmpty<any, any, any>>, [Streamable.NonEmpty]<[K, V]>
import { type MultiMapBase } from "https://deno.land/x/rimbu@0.14.0/multimap/custom/index.ts";
const { NonEmpty } = MultiMapBase;

Methods

stream(): Stream.NonEmpty<[K, V]>

Returns a non-empty Stream containing all entries of this collection as tuples of key and value.

addEntries(entries: StreamSource<readonly [K, V]>): WithKeyValue<Tp, K, V>["nonEmpty"]

Returns the collection with the given entries added.