def with_cell

cswap-bend-cli@0.1.0.0 · view.bend:79

import cswap-bend-cli@0.1.0.0/view.bend as View
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

79def with_cell(j: Json.Json, m: Maybe<&2, Cell>) -> Json.Json:
80  match m:
81    case Some{Cell{cd, ck}}:
82      Json.set("clock", jstr(ck), Json.set("countdown", jstr(cd), j))
83    case None{}:
84      j

Uses (5)

Used by (3)