def grow_tab

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

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

400# Twice the buckets, every (word, link) pair re-placed.
401def grow_tab(+mask: U32, +td: U32, tab: Array<U32>) -> Array<U32>:
402  mv_fin(mv_go(U32.to_nat(U32.inc(mask)), 0, U32.inc(U32.shl(mask)), MV{tab, Array.new(U32, U32.to_nat(U32.inc(td)), 0)}))

Uses (9)

Used by (1)