def replace_word

mylsm-lsm-store@0.6.0.1 · src/BitTree.bend:167

import mylsm-lsm-store@0.6.0.1/src/BitTree.bend as BitTree
import Base

167# Safe logical-word update. This helper makes metadata preservation and
168# unaffected-word laws direct to state.
169def replace_word(+tree: BitTree, +index: Nat, value: U32) -> BitTree:
170  replace_word_if(Nat.is_lt(index, word_count(tree)), tree, index, value)

Uses (6)

Used by (1)