def retry.neg

cswap-bend-cli@0.1.0.0 · usage/req.bend:35

import cswap-bend-cli@0.1.0.0/usage/req.bend as Req
import Base
import cswap-bend-cli@0.1.0.0/usage/text.bend as UText

35def retry.neg(neg: Bool, +raw: String) -> Maybe<&2, U32>:
36  match neg:
37    case True{}:
38      retry.zero(UText.float(String.drop(raw, 1n)))
39    case False{}:
40      retry.norm(UText.float(raw))

Uses (8)

Used by (1)