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

x/rimbu/bimultimap/custom/index.ts>BiMultiMapContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class BiMultiMapContext
implements [BiMultiMapBase.Context]<UK, UV, Tp>
import { BiMultiMapContext } from "https://deno.land/x/rimbu@1.1.0/bimultimap/custom/index.ts";

Constructors

new
BiMultiMapContext(
typeTag: N,
keyValueMultiMapContext: WithKeyValue<Tp, UK, UV>["keyValueMultiMapContext"],
valueKeyMultiMapContext: WithKeyValue<Tp, UK, UV>["valueKeyMultiMapContext"],
)

Type Parameters

UK
UV
N extends string
optional
Tp extends ContextTypesImpl = ContextTypesImpl

Properties

readonly
_empty
readonly
_fixTypes: any
readonly
_types: Tp
readonly
builder: <K extends UK, V extends UV>() => WithKeyValue<Tp, K, V>["builder"]
readonly
empty: <K extends UK, V extends UV>() => WithKeyValue<Tp, K, V>["normal"]
readonly
from: <K extends UK, V extends UV>(...sources: ArrayNonEmpty<StreamSource<readonly [K, V]>>) => [K, V] extends [UK, UV] ? WithKeyValue<Tp, K, V>["normal"] | any : never
readonly
of: any
readonly
reducer: <K extends UK, V extends UV>(source?: StreamSource<readonly [K, V]>) => Reducer<[K, V], WithKeyValue<Tp, K, V>["normal"]>

Methods

createBuilder<K extends UK, V extends UV>(source?: WithKeyValue<Tp, K, V>["nonEmpty"]): WithKeyValue<Tp, K, V>["builder"]
createNonEmpty<K, V>(keyValueMultiMap: WithKeyValue<Tp, K, V>["keyValueMultiMapNonEmpty"], valueKeyMultiMap: WithKeyValue<Tp, K, V>["valueKeyMultiMapNonEmpty"]): WithKeyValue<Tp, K, V>["nonEmpty"]