def put.map
import bendonnect-rpc@0.1.0.0/src/pbjson.bend as Pbjsonimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import bend-kit-json@0.6.1.1/json.bend as Json
293# map<K,V>: entries built with Pj.entry(Pj.key.K(k), value); omitted when empty.
294def put.map(+name: String, entries: List<&1, Bytes.Bytes & Json.Val>, acc: List<&1, Bytes.Bytes & Json.Val>) -> List<&1, Bytes.Bytes & Json.Val>:
295 match entries:
296 case Nil{}:
297 acc
298 case Con{h, t}:
299 put.always.v(name, Json.Obj{Con{h, t}}, acc)
Uses (6)
Used by (0)
No other definition uses this definition.