def either

bolt@1.27.0.0 · src/rules/suspicious/prefix.bend:255

import bolt@1.27.0.0/src/rules/suspicious/prefix.bend as Prefix
import Base

255# the first message, else the second
256def either(ma: Maybe<&2, String>, mb: Maybe<&2, String>) -> Maybe<&2, String>:
257  match ma:
258    case None{}:
259      mb
260    case Some{x}:
261      Some{x}

Uses (2)

Used by (1)