Skip to content

Instantly share code, notes, and snippets.

@pcwalton
Created May 28, 2010 21:43
Show Gist options
  • Save pcwalton/417796 to your computer and use it in GitHub Desktop.
Save pcwalton/417796 to your computer and use it in GitHub Desktop.
let deps = [
("a", []), ("b", []), ("c", [ "a", "b" ]), ("d", [ "b" ]), ("e", [ "d" ])
] in
let data = List.map (fun r -> r, new mock_package (fst r) (snd r)) deps in
let pkgs = Core_hashtbl.of_alist data in
let [ a, b, c, d, e ] = List.map snd data in
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment