def attempted2

cswap-bend-cli@0.1.0.0 · daemon/tick.bend:201

import cswap-bend-cli@0.1.0.0/daemon/tick.bend as Tick
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

201def attempted2(+m: Maybe<&2, Json.Json>, +now: U32) -> Bool:
202  match m:
203    case Some{Json.JNum{t}}:
204      String.eq(Maybe.default(&2, String, List.head(&2, String, String.split(t, '.')), ""), U32.show(now))
205    case _:
206      False{}

Uses (11)

Used by (1)