def rec_of

cswap-bend-cli@0.1.0.0 · daemon/identity.bend:28

import cswap-bend-cli@0.1.0.0/daemon/identity.bend as Identity
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq

28def rec_of(+m: Maybe<&2, Json.Json>, +slot: String) -> Json.Json:
29  match m:
30    case None{}:
31      Json.JObj{Json.JNil{}}
32    case Some{seq}:
33      Maybe.default(&2, Json.Json, SSeq.slot_record(seq, slot), Json.JObj{Json.JNil{}})

Uses (5)

Used by (1)