def probe

bend-collections-laws-math@1.0.0.0 · src/containers/hash_table.bend:250

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

250# The bucket holding key (link != 0) or the empty bucket ending its probe,
251# the key as it would be stored (SNil for a one-character key), and its word.
252def probe(tab: Array<U32>, ks: Array<String>, +mask: U32, key: String) -> Found & U32:
253  match key:
254    case SNil{}:
255      probe_long(tab, ks, mask, SNil{})
256    case SCon{Chr{+c}, t}:
257      probe_c(tab, ks, mask, c, t)

Uses (8)

Used by (4)