Last active
December 3, 2019 18:12
-
-
Save jdan/11b3df7708dac50834f96f89d16eafe6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module IntPairs = Set.Make ( | |
struct | |
type t = int * int | |
let compare = compare | |
end | |
) | |
let () = | |
let ips = IntPairs.of_list [(1, 1); (1, 2); (2, 1); (1, 2)] | |
in | |
IntPairs.iter | |
(fun (x, y) -> | |
(string_of_int x) ^ ", " ^ (string_of_int y) |> print_endline) | |
ips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment