Returns the minimum between a and b.

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

If both are equivalent, then returns a.

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

Property definitions

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