I agree that term_hash(+Term, -Hash) makes the most sense.
What's more, that's the name that SICStus Prolog uses:
term_hash(?Term, ?Hash)
term_hash(?Term, +Depth, +Range, ?Hash)
(found in SICStus 3 and SICStus 4 documentation; see library(terms)).
It would be nice if term_hash/4 were supported as well as term_hash/2.
To the best of my belief, I invented these predicates, inspired by the
Lisp SXHASH function. The Depth argument was to do something useful
with sufficiently-instantiated but non-ground terms. The Range argument
was to do modular computations internally.
Why it ended up as hash_term/2 in the Quintus manual is something I can
no longer recall; it might well be my fault.
------------
For further info, please visit
http://www.swi-prolog.org/To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>"
in its body to
majordomo@...