• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.14.4 Tries
All Application Manual Name SummaryHelp

  • 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
Availability:built-in
[nondet]trie_gen(+Trie, ?Key, -Value)
True when Key is associated with Value in Trie. Backtracking retrieves all pairs. The walk cuts a path of the trie at the first functor or constant that differs from the one of Key at the same place, also after a variable in Key or in the trie. A variable in Key still visits every stored subterm at its place, and all paths below a stored attributed variable are visited. The order in which pairs are enumerated is undefined and the predicate may leave a choice point after the last answer. Currently unsafe if Trie is modified while the values are being enumerated. See also trie_gen_compiled/3.
ClioPatria (version V3.1.1-59-g7b9a7a3)