def num_any

cswap-bend-cli@0.1.0.0 · importu.bend:102

import cswap-bend-cli@0.1.0.0/importu.bend as Importu
import Base
import cswap-bend-cli@0.1.0.0/usage/text.bend as UText
import cswap-bend-cli@0.1.0.0/json.bend as Json

102# Any finite number (the spend amounts may be signed).
103def num_any(j: Json.Json) -> Maybe<&2, String>:
104  match j:
105    case Json.JNum{t}:
106      UText.float(t)
107    case _:
108      None{}

Uses (4)

Used by (1)