signature HASHABLE
An abstract signature for types that support hashing, useful for functor arguments. Note that most basic types in the fundamental library match this signature.
See also: ORDERED
import signature HASHABLE from "x-alice:/lib/data/HASHABLE-sig"
signature HASHABLE = sig type t val equal : t * t -> bool val hash : t -> int end
The abstract type of hashable values.
Returns true if x1 and x2 are equal, false otherwise.
Maps x to an integer suitable as a hash value.