Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Hashtbl.hash and Hashtbl.hash_param
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: sebastien FURIC <sebastien.furic@t...>
Subject: [Caml-list] Hashtbl.hash and Hashtbl.hash_param

 What kind of algorithm is used to compute the hash code of objects in
O'Caml ?

 Hashtbl.hash ( (fun x -> 100)
 always returns 0 (Hashtbl.hash_param has the same properties) which is
a poor result !

 What can I do if I don't know the size of the list in advance ?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: