def root.other

bend-toon-codec@0.1.0.0 · src/decode.bend:108

import bend-toon-codec@0.1.0.0/src/decode.bend as Decode
import Base
import bend-toon-codec@0.1.0.0/src/json.bend as J
import bend-toon-codec@0.1.0.0/src/dline.bend as D

108# Section 5 root form discovery, after the header of a root array failed.
109def root.other(+one: Bool, +text: String, +ls: List<&2, D.DL>, +strict: Bool) -> Result<&2, &2, String, J.Json>:
110  match one:
111    case True{}:
112      single(text, ls, strict)
113    case False{}:
114      run.object(ls, strict)

Uses (8)

Used by (1)