import { VariantMapBase } from "https://deno.land/x/rimbu@0.14.0/collection-types/map-custom/interface/index.ts";
Interfaces
Utility interface that provides higher-kinded types for this collection. |
import { type VariantMapBase } from "https://deno.land/x/rimbu@0.14.0/collection-types/map-custom/interface/index.ts";
Methods
Returns true if there is at least one entry in the collection, and instructs the compiler to treat the collection as a .NonEmpty type.
Returns the collection as a .NonEmpty type
Returns a Stream
containing all entries of this collection as tuples of key and value.
Returns the value associated with the given key
, or given otherwise
value if the key is not in the collection.
Returns true if the given key
is present in the collection.
Returns the collection where the entry associated with given key
is removed if it was part of the collection.
Returns the collection where the entries associated with each key in given keys
are removed if they were present.
Returns a tuple containing the collection of which the entry associated with given key
is removed, and the value that
is associated with that key. If the key is not present, it will return undefined instead.
Performs given function f
for each entry of the collection, using given state
as initial traversal state.
Returns a collection with the same keys, but where the given mapFun
function is applied to each entry value.
Returns a collection containing only those entries that satisfy given pred
predicate.