4.14.1.2 Indexing databases
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Database
          • Managing (dynamic) predicates
            • Indexing databases
              • term_hash/2
              • term_hash/4
              • variant_sha1/2
              • variant_hash/2
    • Packages
Availability:built-in
[det]variant_hash(+Term, -HashKey)
Similar to variant_sha1/2, but using a non-cryptographic hash and produces an integer result like term_hash/2. This version does deal with attributed variables, processing them as normal variables. This hash is primarily intended to speedup finding variant terms in a set of terms. bugAs variant_sha1/2, cyclic terms result in an exception.