def or.int

yaml-for-bend@0.1.1.0 · core.bend:91

import yaml-for-bend@0.1.1.0/core.bend as Core
import Base
import yaml-for-bend@0.1.1.0/value.bend as V

91def or.int(m: Maybe<&2, String>, s: String, rest: Unit -> V.Yaml) -> V.Yaml:
92  match m:
93    case Some{t}:
94      V.Int{t}
95    case None{}:
96      rest(Unit{})

Uses (4)

Used by (1)