def probe_short
bend-collections-laws-crypto@1.0.0.0 · src/containers/hash_table.bend:236
import bend-collections-laws-crypto@1.0.0.0/src/containers/hash_table.bend as HashTable
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/hash.bend as HS
236def probe_short(tab: Array<U32>, ks: Array<String>, +mask: U32, +c: U32, ok: Bool) -> Found & U32:
237 match ok:
238 case True{}:
239 q_fin(ks, short_word(c), qfind(U32.to_nat(U32.inc(mask)), qstep(tab, HS.bucket(short_word(c), mask), short_word(c)), mask, short_word(c), HS.bucket(short_word(c), mask)))
240 case False{}:
241 probe_long(tab, ks, mask, SCon{Chr{c}, SNil{}})