Guest User

List.sort_uniq custom compare

a guest
Dec 21st, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.10 KB | None | 0 0
  1. let tuple_compare ((a1, a2) as a) ((b1, b2) as b) =
  2.   if a1 = b2 && a2 = b1 then 0
  3.   else compare a b
Advertisement
Add Comment
Please, Sign In to add comment