Importu.spend.num2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/importu.bend as Importu Lines 95-100 of cswap-bend-cli@0.1.0.0/importu.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/importu.bend&start_line=95&end_line=100 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def spend.num2(m: Maybe<&2, String>, +k: String, out: Json.Json) -> Result<&2, &2, String, Json.Json>: match m: case Some{t}: Done{Json.set(k, Json.JNum{t}, out)} case None{}: Fail{"spend." ++ k ++ " must be a number"} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=set