BendtorchCore.depth_seek: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/main.bend as BendtorchCore Lines 21-29 of bendtorch-core@0.1.0.0/src/storage/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/main.bend&start_line=21&end_line=29 import Base def depth_seek(fuel: Nat, +n: Nat, +depth: Nat, +capacity: Nat, done: Bool) -> Nat & Nat: match fuel done: case 0n _: (depth, capacity) case 1n+p True{}: (depth, capacity) case 1n+p False{}: +next = Nat.add(capacity, capacity) depth_seek(p, n, 1n+depth, next, Nat.is_le(n, next)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma