def put.repeated.message

bendonnect-rpc@0.1.0.0 · src/pbjson.bend:285

import bendonnect-rpc@0.1.0.0/src/pbjson.bend as Pbjson
import 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

285# vs: each element's Msg.to_json(m); omitted when empty.
286def put.repeated.message(+name: String, vs: List<&1, Json.Val>, acc: List<&1, Bytes.Bytes & Json.Val>) -> List<&1, Bytes.Bytes & Json.Val>:
287  match vs:
288    case Nil{}:
289      acc
290    case Con{h, t}:
291      put.always.v(name, Json.Arr{Con{h, t}}, acc)

Uses (6)

Used by (0)

No other definition uses this definition.