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

NAME

6       MoreLabels.Hashtbl.HashedType - no description
7

Module type

9       Module type   MoreLabels.Hashtbl.HashedType
10

Documentation

12       Module type HashedType
13        = Hashtbl.HashedType
14
15
16
17
18
19
20
21       type t
22
23
24       The type of the hashtable keys.
25
26
27
28
29       val equal : t -> t -> bool
30
31       The equality predicate used to compare keys.
32
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 ( (=) , Hashtbl.hash ) for comparing  objects  by  strucā€
42       ture,  (  (fun  x  y -> compare x y = 0) , Hashtbl.hash ) for comparing
43       objects by structure and handling Pervasives.nan correctly, and (  (==)
44       ,  Hashtbl.hash  )  for comparing objects by addresses (e.g. for cyclic
45       keys).
46
47
48
49
50
51
52OCamldoc                          2007-05-24  MoreLabels.Hashtbl.HashedType(3)
Impressum