def unwrap

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

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

450# The value of a parse that must have worked; JNull when it did not. For
451# tests and constants, not for untrusted text.
452def unwrap(+r: Result<&2, &2, String, Json>) -> Json:
453  match r:
454    case Done{v}:
455      v
456    case Fail{e}:
457      JNull{}

Uses (3)

Used by (3)