Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
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
A.3.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]
list_to_assoc
(
+Pairs, -Assoc
)
Create an association from a list
Pairs
of Key-Value pairs. List must not contain duplicate keys.
Errors
domain_error(unique_key_pairs, List)
if List contains duplicate keys
ClioPatria
(version
V3.1.1-21-gb8003bb
)