Step.block: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/step.bend as Step Lines 60-67 of bend-toon-codec@0.1.0.0/src/step.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/step.bend&start_line=60&end_line=67 import Base import bend-toon-codec@0.1.0.0/src/json.bend as J import bend-toon-codec@0.1.0.0/src/frame.bend as F def block(+zero: Bool, +fields: List<&2, String>, +n: U32, +d: U32, +att: F.Att, +depth: U32) -> Result<&2, &2, String, Start>: match zero fields: case True{} _: Done{SVal{J.JArr{J.JNil{}}}} case False{} Nil{}: Done{SOpen{F.FLst{depth, att, n, 0, J.JNil{}}}} case False{} Con{f, t}: Done{SOpen{F.FTab{depth, att, n, 0, d, Con{f, t}, J.JNil{}}}} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/frame.bend&name=Att 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/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/step.bend&name=Start