def full

ezmcp@0.1.0.0 · src/openapi.bend:177

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

177# a string when it is not empty, as JavaScript's `||` takes it
178def full(text: Maybe<&2, String>) -> Maybe<&2, String>:
179  match text:
180    case None{}:
181      None{}
182    case Some{+str}:
183      Bool.pick(Maybe<&2, String>, String.is_empty(str), None{}, Some{str})

Uses (4)

Used by (7)