spacepaste

  1.  
  2. module A = BetterSet (BatSet.Make(OrderedString)) (PprString);;
  3. module B = BetterSet (Set.Make(OrderedString)) (PprString);;
  4. # A.inter (A.of_list ["A"; "B"; "C"; "D"]) (A.of_list ["A"; "B"; "C"; "D"]);;
  5. - : A.t = {}
  6. # B.inter (B.of_list ["A"; "B"; "C"; "D"]) (B.of_list ["A"; "B"; "C"; "D"]);;
  7. - : B.t = {A; B; C; D}
  8.