def fin.arr

bend-toon-codec@0.1.0.0 · src/frame.bend:113

import bend-toon-codec@0.1.0.0/src/frame.bend as Frame
import Base
import bend-toon-codec@0.1.0.0/src/json.bend as J

113def fin.arr(+ok: Bool, +xs: J.Json) -> Result<&2, &2, String, J.Json>:
114  match ok:
115    case True{}:
116      Done{J.JArr{rev.items(xs, J.JNil{})}}
117    case False{}:
118      Fail{"array length does not match its header"}

Uses (5)

Used by (1)