def arr_start
import bend-toon-codec@0.1.0.0/src/step.bend as Stepimport Base
import bend-toon-codec@0.1.0.0/src/hdr.bend as H
import bend-toon-codec@0.1.0.0/src/frame.bend as F
76# What a header opens: a finished array (inline values or zero length) or an
77# open frame whose child lines sit at `depth`.
78def arr_start(+att: F.Att, +depth: U32, +h: H.Hdr, +strict: Bool) -> Result<&2, &2, String, Start>:
79 match h:
80 case H.Hdr{n, d, fields, rest}:
81 start.pick(String.is_empty(String.trim(rest)), n, d, fields, rest, att, depth, strict)