def field.cons

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

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

73def field.cons(k: String, x: Result<&2, &2, String, Json>, rest: Result<&2, &2, String, Json>) -> Result<&2, &2, String, Json>:
74  match x rest:
75    case Done{a} Done{b}:
76      Done{JField{k, a, b}}
77    case Fail{e} _:
78      Fail{e}
79    case _ Fail{e}:
80      Fail{e}

Uses (3)

Used by (1)