1MoreLabels.Hashtbl.HashedType(3) OCaml libraryMoreLabels.Hashtbl.HashedType(3)
2
3
4

NAME

6       MoreLabels.Hashtbl.HashedType  -  The  input  signature  of the functor
7       MoreLabels.Hashtbl.Make.
8

Module type

10       Module type   MoreLabels.Hashtbl.HashedType
11

Documentation

13       Module type HashedType
14        = sig end
15
16
17       The input signature of the functor MoreLabels.Hashtbl.Make .
18
19
20
21
22
23       type t
24
25
26       The type of the hashtable keys.
27
28
29
30       val equal : t -> t -> bool
31
32       The equality predicate used to compare keys.
33
34
35
36       val hash : t -> int
37
38       A hashing function on keys. It must be such that if two keys are  equal
39       according  to  equal , then they have identical hash values as computed
40       by hash .  Examples: suitable ( equal , hash ) pairs for arbitrary  key
41       types include
42
43       -        ( (=) , MoreLabels.Hashtbl.HashedType.hash ) for comparing ob‐
44       jects by structure (provided objects do not contain floats)
45
46       -        ( (fun x y -> compare x y =  0)  ,  MoreLabels.Hashtbl.Hashed‐
47       Type.hash  )  for  comparing objects by structure and handling nan cor‐
48       rectly
49
50       -        ( (==) , MoreLabels.Hashtbl.HashedType.hash  )  for  comparing
51       objects by physical equality (e.g. for mutable or cyclic objects).
52
53
54
55
56
57
58OCamldoc                          2022-07-22  MoreLabels.Hashtbl.HashedType(3)
Impressum