import { type VariantMapBase } from "https://deno.land/x/rimbu@0.13.0/collection-types/map-custom/index.ts";
const { NonEmpty } = VariantMapBase;
Methods
Returns this collection typed as a 'possibly empty' collection.
Returns a non-empty Stream containing all entries of this collection as tuples of key and value.
streamKeys(): Stream.NonEmpty<K>
Returns a non-empty Stream containing all keys of this collection.
streamValues(): Stream.NonEmpty<V>
Returns a non-empty Stream containing all values of this collection.
Returns a non-empty collection with the same keys, but where the given mapFun
function is
applied to each entry value.
toArray(): ArrayNonEmpty<readonly [K, V]>
Returns a non-empty array containing all entries in this collection.