def or_null

cswap-bend-cli@0.1.0.0 · fmt/shape.bend:27

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

27def or_null(m: Maybe<&2, Json.Json>) -> Json.Json:
28  match m:
29    case None{}:
30      Json.JNull{}
31    case Some{v}:
32      v

Uses (2)

Used by (1)