def push.obj
bend-kit-llm@0.13.0.1 · llm.bend:115
import bend-kit-llm@0.13.0.1/llm.bend as Llm
import Base
import bend-kit-json@0.7.0.0/json.bend as Json
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-encoding@0.5.0.0/encoding.bend as Enc
115def push.obj(kvs: List<&1, Bytes.Bytes & Json.Val>, +p: String, t: List<&1, String & Json.Val>) -> List<&1, String & Json.Val>:
116 match kvs:
117 case Nil{}:
118 t
119 case Con{(k, x), rest}:
120 Con{(path(p, Enc.utf8.decode(k)), x), push.obj(rest, p, t)}