Zlib.cd.go: def of bend-kit-zlib@0.5.1.0 Import: import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib Lines 294-301 of bend-kit-zlib@0.5.1.0/zlib.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-zlib@0.5.1.0/zlib.bend&start_line=294&end_line=301 import Base # Each step adds at least one length, so total steps suffice. def cd.go(k: Nat, +total: U32, st: Cd) -> Cd: match k: case 0n: st case 1n+f: Cd{h, b, acc, +n, +prev, +bad} = st cd.go(f, total, cd.step(Bool.or(bad, U32.is_le(total, n)), h, b, acc, n, prev, bad, total)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=bend-kit-zlib@0.5.1.0/zlib.bend&name=Cd https://jend.leeeet.dev/definition.txt?path=bend-kit-zlib@0.5.1.0/zlib.bend&name=cd.step