Skip to main content
Module

x/rimbu/bimap/custom/index.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>
Re-export
import { BiMapContext } from "https://deno.land/x/rimbu@0.14.0/bimap/custom/index.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>