• 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

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
tc atoms on each subsequent call. reset_gensym/0Reset gensym for all registered keys. reset_gensym/1Restart generation of identifiers from Base at <Base>1.

F.2.21 library(heaps)

add_to_heap/4Adds Key with priority Priority to Heap0, constructing a new heap in Heap.
delete_from_heap/4Deletes Key from Heap0, leaving its priority in Priority and the resulting data structure in Heap.
empty_heap/1True if Heap is an empty heap.
get_from_heap/4Retrieves the minimum-priority pair Priority-Key from Heap0.
heap_size/2Determines the number of elements in Heap.
heap_to_list/2Constructs a list List of Priority-Element terms, ordered by (ascending) priority.
is_heap/1Returns true if X is a heap.
list_to_heap/2If List is a list of Priority-Element terms, constructs a heap out of List.
merge_heaps/3Merge the two heaps Heap0 and Heap1 in Heap.
min_of_heap/3Unifies Key with the minimum-priority element of

ClioPatria (version V3.1.1-42-gd6a756b-DIRTY)