Skip to main content
Module

x/rimbu/hashed/map-custom/index.ts>HashMapBlock

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashMapBlock
Re-export
import { HashMapBlock } from "https://deno.land/x/rimbu@0.14.0/hashed/map-custom/index.ts";

Constructors

new
HashMapBlock(
context: HashMapContext<K>,
entries: readonly (readonly [K, V])[] | null,
entrySets: readonly MapEntrySet<K, V>[] | null,
size: number,
level: number,
)

Methods

addEntry(entry: readonly [K, V], hash?): HashMap<K, V> | any
copy(
entries?,
entrySets?,
size?,
): HashMapBlock<K, V>
forEach(f: (
entry: readonly [K, V],
index: number,
halt: () => void,
) => void
, state?: TraverseState
): void
get<UK, O>(
key: RelatedTo<K, UK>,
otherwise?: OptLazy<O>,
hash?: number,
): V | O
mapValues<V2>(mapFun: (value: V, key: K) => V2): HashMap.NonEmpty<K, V2>
modifyAt(
atKey: K,
options: { ifNew?: OptLazyOr<V, Token>; ifExists?: (currentEntry: V, remove: Token) => V | Token; },
atKeyHash?,
): HashMap<K, V>
stream(): Stream.NonEmpty<readonly [K, V]>