def new_from_plan

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

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

62# Create from plan for the packed bit-tree operations.
63def new_from_plan(words: Nat, plan: Plan) -> BitTree:
64  match plan:
65    case Plan{capacity, +height}:
66      BT{zero_tree(height), words, capacity, height}

Uses (4)

Used by (1)