def pop

bend-collections-laws-crypto@1.0.0.0 · src/containers/hash_table.bend:522

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

522# Remove key, answering its value.
523def pop(a, -V: Kind(a), m: HashMap<a, V>, key: String) -> HashMap<a, V> & Maybe<a, V>:
524  HM{+n, +mask, +td, +fresh, +sz, +sd, +free, tab, ks, vs, nx} = m
525  pop_f(a, V, n, mask, td, fresh, sz, sd, free, vs, nx, probe(tab, ks, mask, key))

Uses (6)

Used by (1)