Decode.array.root: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/decode.bend as Decode Lines 74-82 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=74&end_line=82 import Base import bend-toon-codec@0.1.0.0/src/frame.bend as F import bend-toon-codec@0.1.0.0/src/step.bend as T # The root is an array: its header started a value or an open frame. def array.root(+r: Result<&2, &2, String, T.Start>) -> Result<&2, &2, String, F.St>: match r: case Fail{e}: Fail{e} case Done{T.SVal{v}}: init(Nil{}, Some{v}) case Done{T.SOpen{fr}}: init(Con{fr, Nil{}}, None{}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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/decode.bend&name=init https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/frame.bend&name=St https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/step.bend&name=Start