F.2 Library predicates
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Summary
        • Library predicates
          • library(aggregate)
          • library(ansi_term)
          • library(apply)
          • library(assoc)
          • library(broadcast)
          • library(charsio)
          • library(check)
          • library(clpb)
          • library(clpfd)
          • library(clpqr)
          • library(csv)
          • library(dcgbasics)
          • library(dcghighorder)
          • library(debug)
          • library(dicts)
          • library(error)
          • library(fastrw)
          • library(explain)
          • library(help)
          • library(gensym)
          • library(heaps)
          • library(increval)
          • library(intercept)
          • library(iostream)
          • library(listing)
          • library(lists)
          • library(main)
          • library(occurs)
          • library(option)
          • library(optparse)
          • library(ordsets)
          • library(persistency)
          • library(portraytext)
          • library(predicate_options)
          • library(prologdebug)
          • library(prologjiti)
          • library(prologpack)
          • library(prologxref)
          • library(pairs)
          • library(pio)
          • library(random)
          • library(rbtrees)
          • library(readutil)
          • library(record)
          • library(registry)
          • library(settings)
          • library(simplex)
          • library(statistics)
          • library(terms)
          • library(ugraphs)
          • library(url)
          • library(www_browser)
          • library(solution_sequences)
          • library(thread)
          • library(thread_pool)
          • library(varnumbers)
          • library(yall)
    • Packages

F.2.42 library(rbtrees)

is_rbtree/1True if Term is a valid Red-Black tree.
list_to_rbtree/2Tree is the red-black tree corresponding to the mapping in List, which should be a list of Key-Value pairs.
ord_list_to_rbtree/2Tree is the red-black tree corresponding to the mapping in list List, which should be a list of Key-Value pairs.
rb_apply/4If the value associated with key Key is Val0 in Tree, and if call(G,Val0,ValF) holds, then NewTree differs from Tree only in that Key is associated with value ValF in tree NewTree.
rb_clone/3‘Clone' the red-back tree TreeIn into a new tree TreeOut with the same keys as the original but with all values set to unbound values.
rb_del_max/4Delete the largest element from the tree Tree, returning the key Key, the value Val associated with the key and a new tree NewTree.
rb_del_min/4Delete the least element from the tree Tree, returning the key Key, the value Val associated with the key and a new tree NewTree.
rb_delete/3Delete element with key Key from the tree Tree, returning the value Val associated with the key and a new tree NewTree.
rb_delete/4Same as rb_delete(Tree, Key, NewTree), but also unifies Val with the value associated with Key in Tree.
rb_empty/1Succeeds if Tree is an empty Red-Black tree.
rb_fold/4Fold the given predicate over all the key-value pairs in Tree, starting with initial state State0 and returning the final state State.
rb_in/3True when Key-Value is a key-value pair in red-black tree Tree.
rb_insert/4Add an element with key Key and Value to the tree Tree creating a new red-black tree NewTree.
rb_insert_new/4Add a new element with key Key and Value to the tree Tree creating a new red-black tree NewTree.
rb_keys/2Keys is unified with an ordered list of all keys in the Red-Black tree Tree.
rb_lookup/3True when Value is associated with Key in the Red-Black tree Tree.
rb_map/2True if call(Goal, Value) is true for all nodes in T.
rb_map/3For all nodes Key in the tree Tree, if the value associated with key Key is Val0 in tree Tree, and if call(G,Val0,ValF) holds, then the value associated with Key in NewTree is ValF.
rb_max/3Key is the maximal key in Tree, and is associated with Val.
rb_min/3Key is the minimum key in Tree, and is associated with Val.
rb_new/1Create a new Red-Black tree Tree.
rb_next/4Next is the next element after Key in Tree, and is associated with Val.
rb_partial_map/4For all nodes Key in Keys, if the value associated with key Key is Val0 in tree Tree, and if call(G,Val0,ValF) holds, then the value associated with Key in NewTree is ValF, otherwise it is the value associated with the key in Tree.
rb_previous/4Previous is the previous element after Key in Tree, and is associated with Val.
rb_size/2Size is the number of elements in Tree.
rb_update/4Tree NewTree is tree Tree, but with value for Key associated with NewVal.
rb_update/5Same as =|rb_update(Tree, Key, NewVal, NewTree)|= but also unifies OldVal with the value associated with Key in Tree.
rb_visit/2Pairs is an infix visit of tree Tree, where each element of Pairs is of the form Key-Value.