def cell.reset

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

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
import cswap-bend-cli@0.1.0.0/clock.bend as Clock

68def cell.reset(m: Maybe<&2, String>, +w: Json.Json, +now: U32, +off: U32) -> Maybe<&2, Cell>:
69  match m:
70    case Some{s}:
71      cell.at(Clock.parse_iso8601(s), w, now, off)
72    case None{}:
73      cell.stored(w)

Uses (8)

Used by (1)