def pick_eq

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/float.bend:30

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/float.bend as Float
import Base
import bend-collections-laws-math@1.0.0.0/spec/math/generic.bend as SG
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as G

30def pick_eq(-T: Data, +c: Bool, +a: T, +b: T) -> {G.pick(T, c, a, b) == SG.pick(T, c, a, b) : T}:
31  match c:
32    case True{}:
33      {==}
34    case False{}:
35      {==}

Uses (3)

Used by (3)