def set.go

cswap-bend-cli@0.1.0.0 · json.bend:413

import cswap-bend-cli@0.1.0.0/json.bend as Json
import Base

413def set.go(+key: String, +val: Json, fields: Json) -> Json:
414  match fields:
415    case JField{+k, v, +t}:
416      set.pick(String.eq(k, key), k, val, v, t, set.go(key, val, t))
417    case _:
418      JField{key, val, JNil{}}

Uses (4)

Used by (1)