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

x/rimbu/bimap/custom/implementation/context.ts>BiMapContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class BiMapContext
implements [BiMap.Context]<UK, UV>
import { BiMapContext } from "https://deno.land/x/rimbu@1.0.3/bimap/custom/implementation/context.ts";

Constructors

new
BiMapContext(keyValueContext: RMap.Context<UK>, valueKeyContext: RMap.Context<UV>)

Type Parameters

UK
UV
optional
Tp extends BiMap.Types = BiMap.Types

Properties

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

Methods

createBuilder<K extends UK, V extends UV>(source?: BiMapNonEmptyImpl<K, V>): BiMapBuilder<K, V>
createNonEmptyImpl<K extends UK, V extends UV>(keyValueMap: RMap.NonEmpty<K, V>, valueKeyMap: RMap.NonEmpty<V, K>): BiMapNonEmptyImpl<K, V>