def get_hit

bend-collections@1.0.0.0 · src/containers/hash_table.bend:471

import bend-collections@1.0.0.0/src/containers/hash_table.bend as HashTable
import Base

471def get_hit(-V: Data, +n: U32, +mask: U32, +td: U32, +fresh: U32, +sz: U32, +sd: U32, +free: U32, tab: Array<U32>, ks: Array<String>, vs: Array<Maybe<&2, V>>, nx: Array<U32>, dflt: V, +l: U32, absent: Bool) -> HashMap<&2, V> & V:
472  match absent:
473    case True{}:
474      (HM{n, mask, td, fresh, sz, sd, free, tab, ks, vs, nx}, dflt)
475    case False{}:
476      get_fin(V, n, mask, td, fresh, sz, sd, free, tab, ks, nx, get_v(V, dflt, Array.get(Maybe<&2, V>, vs, slot(l))))

Uses (12)

Used by (1)