4.14.4 Tries
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Database
          • Tries
            • trie_new/1
            • trie_destroy/1
            • is_trie/1
            • current_trie/1
            • trie_insert/2
            • trie_insert/3
            • trie_update/3
            • trie_insert/4
            • trie_delete/3
            • trie_lookup/3
            • trie_term/2
            • trie_gen/2
            • trie_gen/3
            • trie_gen_compiled/2
            • trie_gen_compiled/3
            • trie_property/2
    • Packages
[nondet]trie_gen_compiled(+Trie, ?Key)
[nondet]trie_gen_compiled(+Trie, ?Key, -Value)
Similar to trie_gen/3, but uses a compiled representation of Trie. The compiled representation is created lazily and manipulations of the trie (insert, delete) invalidate the current compiled representation. The compiled representation generates answers faster and, as it runs on a snapshot of the trie, is immune to concurrent modifications of the trie. This predicate is used to generate answers from answer tries as used for tabled execution. See section 7.