Returns the maximum between a and b.

assert default_comparator.max(2,10) == 10
assert alpha_comparator.max(2,10)   == 2

If both are equivalent, then returns a.

var m = alpha_comparator.max(1, "1")
assert m == 1
assert m != "1"

Property definitions

core $ Comparator :: max
	# Returns the maximum between `a` and `b`.
	#
	#     assert default_comparator.max(2,10) == 10
	#     assert alpha_comparator.max(2,10)   == 2
	#
	# If both are equivalent, then returns `a`.
	#
	#     var m = alpha_comparator.max(1, "1")
	#     assert m == 1
	#     assert m != "1"
	fun max(a,b: COMPARED): COMPARED
	do
		if compare(a,b) < 0 then return b else return a
	end
lib/core/collection/sorter.nit:67,2--80,4