def min

bend-collections@1.0.0.0 · src/math/generic.bend:79

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

79# Python's min(a, b) keeps a unless b < a; max keeps a unless a < b.
80def min(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +a: T, +b: T) -> T:
81  pick(T, test(N.Lt{b, a}), b, a)

Uses (4)

Used by (2)