def probe
import bend-collections-laws-math@1.0.0.0/src/containers/hash_table.bend as HashTableimport 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)