Rpc.enc_all: def of bendonnect-rpc@0.1.0.0 Import: import bendonnect-rpc@0.1.0.0/src/transport/rpc.bend as Rpc Lines 218-223 of bendonnect-rpc@0.1.0.0/src/transport/rpc.bend: https://jend.leeeet.dev/read.txt?path=bendonnect-rpc@0.1.0.0/src/transport/rpc.bend&start_line=218&end_line=223 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import bendonnect-rpc@0.1.0.0/src/protocol.bend as P def enc_all(~Req: Data, ~enc: @+codec: P.Codec -> Req -> Bytes.Bytes, +codec: P.Codec, xs: List<&2, Req>) -> List<&1, Bytes.Bytes>: match xs: case Nil{}: Nil{} case Con{x, t}: enc(codec, x) <> enc_all(~Req, ~enc, codec, t) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bendonnect-rpc@0.1.0.0/src/protocol.bend&name=Codec