Rpcmsg.item_str: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsg Lines 32-39 of cswap-bend-cli@0.1.0.0/rpcmsg.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/rpcmsg.bend&start_line=32&end_line=39 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def item_str(+h: Json.Json) -> Result<&2, &2, String, String>: match h: case Json.JStr{s}: Done{s} case Json.JNum{t}: Done{t} case _: Fail{"args must be strings or numbers"} Uses (3): 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=cswap-bend-cli@0.1.0.0/json.bend&name=Json