Model.capacity: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/model.bend as Model Lines 3-9 of bendtorch-core@0.1.0.0/src/storage/model.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/model.bend&start_line=3&end_line=9 import Base def capacity(d: Nat) -> Nat: match d: case 0n: 1n case 1n+p: +n = capacity(p) Nat.add(n, n) 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.add