def item.arr

bend-toon-codec@0.1.0.0 · src/step.bend:139

import bend-toon-codec@0.1.0.0/src/step.bend as Step
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

139def item.arr(+r: Result<&2, &2, String, Start>, +dp: U32, +a: F.Att, +n: U32, +c: U32, +xs: J.Json, +rest: List<&2, F.Fr>, +root: Maybe<&2, J.Json>, +bmin: U32) -> Result<&2, &2, String, F.St>:
140  match r:
141    case Fail{e}:
142      Fail{e}
143    case Done{SVal{v}}:
144      lst.push(v, dp, a, n, c, xs, rest, root, bmin)
145    case Done{SOpen{fr}}:
146      Done{F.St{Con{fr, Con{F.FLst{dp, a, n, (c + 1 : U32), xs}, rest}}, root, bmin}}

Uses (12)

Used by (1)