Guest User

Untitled

a guest
Feb 23rd, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.30 KB | None | 0 0
  1. type predicate_type =
  2.   | PredicateType of string * int * string list;;
  3.  
  4. module PromiseSet = Set.Make(struct
  5.   type t = predicate_type
  6.   let compare p1 p2 = match (p1, p2) with (PredicateType(str1, ar1, list1), PredicateType(str2, ar2, list2)) -> (str1 = str2) && (ar1 = ar2) && (list1 = list2));;
Advertisement
Add Comment
Please, Sign In to add comment