def fl.pick

bend-toon-codec@0.1.0.0 · src/expand.bend:134

import bend-toon-codec@0.1.0.0/src/expand.bend as Expand
import Base
import bend-toon-codec@0.1.0.0/src/json.bend as J

134# Flatten an expanded value at `segs` into leaf assignments, inserted in order.
135def fl.pick(+empty: Bool, +j: J.Json, +segs: List<&2, String>, +acc: Result<&2, &2, String, J.Json>, +strict: Bool, +r: Result<&2, &2, String, J.Json>) -> Result<&2, &2, String, J.Json>:
136  match empty:
137    case True{}:
138      ins.r(acc, segs, j, strict)
139    case False{}:
140      r

Uses (6)

Used by (1)