signature HASH =
sigtype hash = word
valstringHash : string -> hash
(* combinators for constructing hashes *)
type 'a hasher
valunit : unit hasher
valint : int hasher
valword : word hasher
valstring : string hasher
valpair : 'a hasher -> 'b hasher -> ('a * 'b) hasher
vallist : 'a hasher -> 'a list hasher
valhashNum : {maxDepth: int, maxLength: int} -> 'a hasher -> 'a -> hash
valhash : 'a hasher -> 'a -> hash
end
returns a hash of the value v using
the compatible hasher h. The parameters maxDepth and maxLength are
used for controling the maximum number of individual hash
contributions and the maximum number of hashed characters in strings,
respectively.