def max
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Genericimport Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
83def max(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +a: T, +b: T) -> T:
84 pick(T, test(N.Lt{a, b}), b, a)
Uses (4)
Used by (7)
- bend-collections-laws-math@1.0.0.0/src/math/generic:clamp_ok
- bend-collections-laws-math@1.0.0.0/spec/math/generic:Max.agrees
- bend-collections-laws-math@1.0.0.0/spec/math/generic:FMax.select
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32:clamp_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32:max_val
- …