Hashcons
Generic hash-consing.
module type HashconsedType = sig ... end
module type HashconsedRecType = sig ... end
module type S = sig ... end
Create a new hashconsing, given canonicalization functions.
Create a new hashconsing, given canonicalization functions. hashcons
will get the resulting hcons
as first argument.
These are intended to be used together with instances of the Make
functor.
Typically used as let hcons = simple_hcons H.generate H.hcons ()
where H
is of type S
.
module type HashedType = sig ... end