Did you know ...
Search Documentation:
Predicate rb_insert/4
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
IRC
Forum & mailing list
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
USERS
Semantic web
Students
Researchers
Commercial users
Dog food
Is SWIPL right for me?
WIKI
Login
View changes
Sandbox
Wiki help
All tags
swipl
library
readutil.pl -- Read utilities
shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
lists.pl -- List Manipulation
error.pl -- Error generating support
pairs.pl -- Operations on key-value lists
option.pl -- Option list processing
zip.pl -- Access resource ZIP archives
apply.pl -- Apply predicates on a list
debug.pl -- Print debug messages and test assertions
url.pl -- Analysing and constructing URL
utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
uri.pl -- Process URIs
memfile.pl
settings.pl -- Setting management
broadcast.pl -- Event service
arithmetic.pl -- Extensible arithmetic
socket.pl -- Network socket (TCP and UDP) library
sgml.pl -- SGML, XML and HTML parser
iostream.pl -- Utilities to deal with streams
dialect.pl -- Support multiple Prolog dialects
quasi_quotations.pl -- Define Quasi Quotation syntax
pure_input.pl -- Pure Input from files and streams
pldoc.pl -- Process source documentation
operators.pl -- Manage operators
prolog_source.pl -- Examine Prolog source-files
thread_pool.pl -- Resource bounded thread management
rbtrees.pl -- Red black trees
rb_new/1
rb_empty/1
rb_lookup/3
rb_min/3
rb_max/3
rb_next/4
rb_previous/4
rb_update/4
rb_update/5
rb_apply/4
rb_in/3
rb_insert/4
rb_insert_new/4
rb_delete/3
rb_delete/4
rb_del_min/4
rb_del_max/4
rb_visit/2
rb_map/2
rb_map/3
rb_fold/4
rb_clone/3
rb_partial_map/4
rb_keys/2
list_to_rbtree/2
ord_list_to_rbtree/2
rb_size/2
is_rbtree/1
time.pl -- Time and alarm library
uid.pl -- User and group management on Unix systems
unix.pl -- Unix specific operations
syslog.pl -- Unix syslog interface
gensym.pl -- Generate unique symbols
main.pl -- Provide entry point for scripts
ssl.pl -- Secure Socket Layer (SSL) library
crypto.pl -- Cryptography and authentication library
aggregate.pl -- Aggregation operators on backtrackable predicates
ordsets.pl -- Ordered set manipulation
oset.pl -- Ordered set manipulation
doc_http.pl -- Documentation server
base64.pl -- Base64 encoding and decoding
www_browser.pl -- Open a URL in the users browser
process.pl -- Create processes and redirect I/O
prolog_colour.pl -- Prolog syntax colouring support.
prolog_xref.pl -- Prolog cross-referencer data collection
solution_sequences.pl -- Modify solution sequences
nb_set.pl -- Non-backtrackable sets
terms.pl -- Term manipulation
apply_macros.pl -- Goal expansion rules to avoid meta-calling
modules.pl -- Module utility predicates
predicate_options.pl -- Access and analyse predicate options
prolog_clause.pl -- Get detailed source-information about a clause
occurs.pl -- Finding and counting sub-terms
listing.pl -- List programs and pretty print clauses
ansi_term.pl -- Print decorated text to ANSI consoles
record.pl -- Access compound arguments by name
assoc.pl -- Binary associations
ugraphs.pl -- Graph manipulation library
filesex.pl -- Extended operations on files
xpath.pl -- Select nodes in an XML DOM
atom.pl -- Operations on atoms
ctypes.pl -- Character code classification
porter_stem.pl
backcomp.pl -- Backward compatibility
system.pl -- System utilities
prolog_pack.pl -- A package manager for Prolog
prolog_config.pl -- Provide configuration information
prolog_stack.pl -- Examine the Prolog stack
pengines.pl -- Pengines: Web Logic Programming Made Easy
charsio.pl -- I/O on Lists of Character Codes
sandbox.pl -- Sandboxed Prolog code
prolog_format.pl -- Analyse format specifications
when.pl -- Conditional coroutining
term_to_json.pl
uuid.pl -- Universally Unique Identifier (UUID) Library
sha.pl -- SHA secure hashes
crypt.pl
persistency.pl -- Provide persistent dynamic predicates
codesio.pl -- I/O on Lists of Character Codes
git.pl -- Run GIT commands
archive.pl -- Access several archive formats
rdf.pl
rdf_parser.pl
rewrite.pl
quintus.pl -- Quintus compatibility
rdf_triple.pl -- Create triples from intermediate representation
sgml_write.pl -- XML/SGML writer module
xsdp_types.pl -- XML-Schema primitive types
thread.pl -- High level thread primitives
md5.pl -- MD5 hashes
random.pl -- Random numbers
make.pl -- Reload modified source files
check.pl -- Consistency checking
prolog_codewalk.pl -- Prolog code walker
prolog_metainference.pl -- Infer meta-predicate properties
base32.pl -- Base32 encoding and decoding
bdb.pl -- Berkeley DB interface
c14n2.pl -- C14n2 canonical XML documents
dicts.pl -- Dict utilities
cgi.pl -- Read CGI parameters
check_installation.pl -- Check installation issues and features
chr.pl
sort.pl
pio.pl -- Pure I/O
coinduction.pl -- Co-Logic Programming
console_input.pl
csv.pl -- Process CSV (Comma-Separated Values) data
date.pl -- Process dates and times
shell.pl -- Elementary shell commands
dif.pl -- The dif/2 constraint
doc_files.pl -- Create stand-alone documentation files
doc_latex.pl -- PlDoc LaTeX backend
double_metaphone.pl -- Phonetic string matching
edinburgh.pl -- Some traditional Edinburgh predicates
editline.pl -- BSD libedit based command line editing
edit.pl -- Editor interface
explain.pl -- Describe Prolog Terms
fastrw.pl -- Fast reading and writing of terms
files.pl
hash_stream.pl -- Maintain a hash on a stream
heaps.pl -- heaps/priority queues
help.pl -- Text based manual
isub.pl -- isub: a string similarity measure
hotfix.pl -- Load hotfixes into executables
pwp.pl -- Prolog Well-formed Pages
iso_639.pl
jpl.pl -- A Java interface for SWI Prolog 7.x
lazy_lists.pl -- Lazy list handling
mallocinfo.pl -- Memory allocation details
nb_rbtrees.pl -- Non-backtrackable operations on red black trees
obfuscate.pl -- Code obfuscating
odbc.pl
optparse.pl -- command line parsing
paxos.pl -- A Replicated Data Store
pcre.pl -- Perl compatible regular expression matching for SWI-Prolog
pdt_console.pl
pengines_io.pl -- Provide Prolog I/O for HTML clients
yall.pl -- Lambda expressions
prolog_stream.pl -- A stream with Prolog callbacks
pengines_sandbox.pl -- Declare Pengine interaction sandbox-safe
plunit.pl -- Unit Testing
portray_text.pl -- Portray text
pprint.pl -- Pretty Print Prolog terms
prolog_autoload.pl -- Autoload all dependencies
prolog_breakpoints.pl -- Manage Prolog break-points
prolog_code.pl -- Utilities for reasoning about code
prolog_history.pl -- Per-directory persistent commandline history
prolog_install.pl -- Installation support predicates
prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
prolog_server.pl
prolog_trace.pl -- Print access to predicates
prolog_wrap.pl -- Wrapping predicates
protobufs.pl -- Google's Protocol Buffers
qpforeign.pl -- Quintus compatible foreign loader
qsave.pl -- Save current program as a state or executable
rdf_diagram.pl -- Show graphical representation of a set of triples
rdf_write.pl -- Write RDF/XML from a list of triples
readln.pl -- Read line as list of tokens
rlimit.pl
saml.pl -- SAML Authentication
zlib.pl -- Zlib wrapper for SWI-Prolog
xmldsig.pl -- XML Digital signature
xmlenc.pl -- XML encryption library
snowball.pl -- The Snowball multi-lingual stemmer library
statistics.pl -- Get information about resource usage
streaminfo.pl
streampool.pl -- Input multiplexing
table.pl
table_util.pl
test_cover.pl -- Clause cover analysis
test_wizard.pl -- Test Generation Wizard
threadutil.pl -- Interactive thread utilities
tty.pl -- Terminal operations
udp_broadcast.pl -- A UDP broadcast proxy
unicode.pl -- Unicode string handling
varnumbers.pl -- Utilities for numbered terms
vm.pl -- SWI-Prolog Virtual Machine utilities
wfs.pl -- Well Founded Semantics interface
win_menu.pl -- Console window menu
writef.pl -- Old-style formatted write
yaml.pl -- Process YAML data
readline.pl -- GNU readline interface
rb_insert
(+Tree, +Key, ?Value, -NewTree)
is
det
Add an element with key
Key
and
Value
to the tree
Tree
creating a new red-black tree
NewTree
. If
Key
is a key in
Tree
, the associated value is replaced by
Value
. See also
rb_insert_new/4
.