def parse.pick

cswap-bend-cli@0.1.0.0 · json.bend:216

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

216def parse.pick(msg: String, r: Result<&2, &2, String, Json>) -> Result<&2, &2, String, Json>:
217  match msg r:
218    case SNil{} _:
219      r
220    case _ _:
221      Fail{msg}

Uses (3)

Used by (1)