Cbor.done: def of bend-kit-cbor@0.3.0.0 Import: import bend-kit-cbor@0.3.0.0/cbor.bend as Cbor Lines 753-759 of bend-kit-cbor@0.3.0.0/cbor.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&start_line=753&end_line=759 import Base # A finished top-level item must end the input. def done(stack: List<&1, Frame>, v: Val, +i: U32, +len: U32) -> St: match stack: case Nil{}: done.top(U32.is_eq(i, len), v) case Con{fr, rest}: done.fr(fr, v, i, rest) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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_eq https://jend.leeeet.dev/definition.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&name=Frame https://jend.leeeet.dev/definition.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&name=St https://jend.leeeet.dev/definition.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&name=Val https://jend.leeeet.dev/definition.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&name=done.fr https://jend.leeeet.dev/definition.txt?path=bend-kit-cbor@0.3.0.0/cbor.bend&name=done.top