def index_path
import mylsm-lsm-store@0.3.2.0/src/BitTree.bend as BitTreeimport Base
108def index_path(height: Nat, +index: Nat, acc: List<&2, Bool>) -> List<&2, Bool>:
109 match height:
110 case 0n:
111 acc
112 case 1n+h:
113 index_path(h, Nat.div(index, 2n), Con{path_bit(Nat.mod(index, 2n)), acc})