Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
sortBy -> sort_by (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lignum authored and Abigail Magalhães committed Jan 2, 2020
1 parent 622da61 commit 7d2f15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/amulet/list.ml
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ and merge cmp = function
*
* Runtime: O(n log n)
*)
let sortBy cmp xs = merge_all cmp (sequences cmp xs)
let sort_by cmp xs = merge_all cmp (sequences cmp xs)

(** Sort a list using the polymorphic compare function, from the ord
* typeclass.
*
* Runtime: O(n log n)
*)
let sort xs = sortBy compare xs
let sort xs = sort_by compare xs

(** Find an element in a list of key-value pairs.
*
Expand Down

0 comments on commit 7d2f15a

Please sign in to comment.