def last2

cswap-bend-cli@0.1.0.0 · daemon/state.bend:142

import cswap-bend-cli@0.1.0.0/daemon/state.bend as State
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

142def last2(+m: Maybe<&2, Json.Json>) -> Maybe<&2, U32>:
143  match m:
144    case Some{Json.JNum{t}}:
145      U32.read(first_part(t))
146    case _:
147      None{}

Uses (5)

Used by (1)