Advertisement
Guest User

Untitled

a guest
May 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. module type CoupleHashMap =
  2. sig
  3. type clef
  4. val compClef : clef -> clef -> int
  5. type valeur
  6. val val_comp : valeur -> valeur -> int
  7. val hash : valeur -> clef
  8. end;;
  9.  
  10. module Couple (E : TypeOrdonne) (S : TypeOrdonne) : CoupleHashMap with type clef = E.t and type valeur = S.t =
  11. struct
  12. type clef = E.t
  13. let compClef = E.compare
  14. type valeur = S.t
  15. let val_comp = S.compare
  16. let hash s = (String.length s)
  17. end;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement