module Sort = struct ... end
Functions |
list
: order:('a -> 'a -> bool) -> 'a list -> 'a list |
true
if its first argument is
less than or equal to its second argument.
array
: order:('b -> 'b -> bool) -> 'b array -> unit |
true
if its first argument is
less than or equal to its second argument.
The array is sorted in place.
merge
: order:('c -> 'c -> bool) -> 'c list -> 'c list -> 'c list |
merge
returns a sorted list containing the elements
from the two lists. The behavior is undefined if the two
argument lists were not sorted.