def FMax.select

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

import bend-collections-laws-math@1.0.0.0/spec/math/generic.bend as Generic
import Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as G

221def FMax.select(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +a: T, +b: T) -> Type:
222  {G.max(~T, ~op, ~test, a, b) == pick(T, test(N.Lt{a, b}), b, a) : T}

Uses (5)

Used by (3)