Below is the API for the OCaml standard library. It's directly copied over from the OCaml Manual, formatted to the Reason syntax and styled accordingly. The API docs are work-in-progress; we'll be polishing these gradually!
module Sort: sig .. end
Listshould be used instead. The new functions are faster and use less memory.
let list: (('a, 'a) => bool, list('a)) => list('a);
trueif its first argument is less than or equal to its second argument.
let array: (('a, 'a) => bool, array('a)) => unit;
trueif its first argument is less than or equal to its second argument. The array is sorted in place.
let merge: (('a, 'a) => bool, list('a), list('a)) => list('a);
mergereturns a sorted list containing the elements from the two lists. The behavior is undefined if the two argument lists were not sorted.