def pick
import bend-collections@1.0.0.0/src/math/generic.bend as Genericimport Base
72def pick(-T: Data, c: Bool, +a: T, +b: T) -> T:
73 match c:
74 case True{}:
75 a
76 case False{}:
77 b
import bend-collections@1.0.0.0/src/math/generic.bend as Genericimport Base
72def pick(-T: Data, c: Bool, +a: T, +b: T) -> T:
73 match c:
74 case True{}:
75 a
76 case False{}:
77 b