Decode.fuel: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/decode.bend as Decode Lines 42-48 of bend-toon-codec@0.1.0.0/src/decode.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/decode.bend&start_line=42&end_line=48 import Base import bend-toon-codec@0.1.0.0/src/frame.bend as F # The stack height: enough steps to close every frame. def fuel(+r: Result<&2, &2, String, F.St>) -> Nat: match r: case Done{F.St{stk, root, bmin}}: List.length(&2, F.Fr, stk) case Fail{e}: 0n Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/frame.bend&name=Fr https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/frame.bend&name=St