Tar.pr.run: def of bend-kit-tar@0.3.0.0 Import: import bend-kit-tar@0.3.0.0/tar.bend as Tar Lines 293-307 of bend-kit-tar@0.3.0.0/tar.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-tar@0.3.0.0/tar.bend&start_line=293&end_line=307 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # Each record consumes at least three bytes; leave fuel for the end transition. def pr.run(fuel: Nat, r: Bytes.Cursor & Pst) -> Bytes.Cursor & Maybe<&1, Pax>: match fuel: case 0n: (c, st) = r (c, None{}) case 1n+f: (c, st) = r match st: case PGo{pax}: pr.run(f, pr.more(pax, Bytes.Cursor.remaining(c))) case PEnd{pax}: (c, Some{pax}) case PBad{}: (c, None{}) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor.remaining https://jend.leeeet.dev/definition.txt?path=bend-kit-tar@0.3.0.0/tar.bend&name=Pax https://jend.leeeet.dev/definition.txt?path=bend-kit-tar@0.3.0.0/tar.bend&name=Pst https://jend.leeeet.dev/definition.txt?path=bend-kit-tar@0.3.0.0/tar.bend&name=pr.more