Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.13.5/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"