fromLessThan<A> static method
Define an Order<A>
using the given 'less than' function f
.
Implementation
static Order<A> fromLessThan<A>(bool Function(A a1, A a2) f) =>
_Order((x, y) => f(x, y)
? -1
: f(y, x)
? 1
: 0);