def row_of

cswap-bend-cli@0.1.0.0 · ustore.bend:129

import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

129# The stored row of a slot, only when it belongs to this identity.
130def row_of(+rows: Json.Json, +id: Id) -> Maybe<&2, Json.Json>:
131  match id:
132    case Id{slot, email, org}:
133      row.pick(Json.get(slot, rows), id)

Uses (5)

Used by (5)