A functional form of Ops::max.
A functional form of Ops::max. Useful to avoid ambiguities like this:
import scala.math.Ordering.Implicits._ "aaa".max("bbb") // Error:(17, 13) type mismatch; // found : String("bbb") // required: Ordering[?] // "aaaa".max("bbb"); // ^
which crop up when you're trying to invoke max
on an object that itself has a max
function already.
Like max
, but for min
.
Like max
, but for min
.