Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
RDF quality heuristics
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
A.4.2 Creating association lists
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(assoc): Association lists
Creating association lists
empty_assoc/1
list_to_assoc/2
ord_list_to_assoc/2
Packages
Availability:
:- use_module(
library(assoc)
).
(can be autoloaded)
[det]
ord_list_to_assoc
(
+Pairs, -Assoc
)
Assoc
is created from an ordered list
Pairs
of Key-Value pairs. The pairs must occur in strictly ascending order of their keys.
Errors
domain_error(key_ordered_pairs, List)
if pairs are not ordered.
ClioPatria
(version
V3.1.1-40-g9d9e003
)