Array.Arrays.slots: def of bend-osdev-array@0.1.0.1 Import: import bend-osdev-array@0.1.0.1/array.bend as Array Lines 14-20 of bend-osdev-array@0.1.0.1/array.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-array@0.1.0.1/array.bend&start_line=14&end_line=20 import Base # 2^d, the slot count of an array of depth d def Arrays.slots(d: Nat) -> Nat: match d: case 0n: 1n case 1n+p: Nat.double(Arrays.slots(p)) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double