Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.1/multimap/custom/index.ts";
const { NonEmpty } = MultiMapBase;

Type Parameters

K
V
optional
Tp extends MultiMapBase.Types = MultiMapBase.Types

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.