def opt

bend-collections-laws-math@1.0.0.0 · src/math/fixed.bend:36

import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as Fixed
import Base

36def opt(-T: Data, bad: Bool, +r: T) -> Maybe<&2, T>:
37  match bad:
38    case True{}:
39      None{}
40    case False{}:
41      Some{r}

Uses (2)

Used by (23)