def pick

bend-collections-laws-math@1.0.0.0 · spec/math/generic.bend:112

import bend-collections-laws-math@1.0.0.0/spec/math/generic.bend as Generic
import Base

112def pick(-T: Data, c: Bool, +a: T, +b: T) -> T:
113  match c:
114    case True{}:
115      a
116    case False{}:
117      b

Uses (1)

Used by (12)