def pickt

bend-collections-laws-crypto@1.0.0.0 · spec/math/f64.bend:105

import bend-collections-laws-crypto@1.0.0.0/spec/math/f64.bend as F64
import Base

105# pick for pairs (a Sigma is Type-sorted)
106def pickt(-T: Type, c: Bool, a: T, b: T) -> T:
107  match c:
108    case True{}:
109      a
110    case False{}:
111      b

Uses (1)

Used by (2)