def take

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

import bendonnect-rpc@0.1.0.0/src/pbjson.bend as Pbjson
import Base
import bend-kit-json@0.6.1.1/json.bend as Json

427# Removes the field named json_name or proto_name and answers its value (Json.Null{} if absent,
428# which every Pj.read.* maps to the default) beside the remaining entries. Unknown keys simply stay
429# in the rest and can be dropped. A later duplicate of a matched key is removed too.
430def take(kvs: List<&1, String & Json.Val>, +json_name: String, +proto_name: String) -> Json.Val & List<&1, String & Json.Val>:
431  take.go(json_name, proto_name, kvs)

Uses (5)

Used by (0)

No other definition uses this definition.