max method

T max(
  1. T x,
  2. T y
)

If x > y, return x, else return y.

Implementation

T max(T x, T y) => gt(x, y) ? x : y;