def cell.at

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

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

61def cell.at(t: Maybe<&2, U32>, +w: Json.Json, +now: U32, +off: U32) -> Maybe<&2, Cell>:
62  match t:
63    case Some{+u}:
64      Some{Cell{UNorm.countdown(UNorm.remaining(u, now)), UNorm.clock.text(u, now, off)}}
65    case None{}:
66      cell.stored(w)

Uses (8)

Used by (1)