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.29 library(pairs): Operations on key-value lists
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(pairs): Operations on key-value lists
pairs_keys_values/3
pairs_values/2
pairs_keys/2
group_pairs_by_key/2
transpose_pairs/2
map_list_to_pairs/3
Packages
Availability:
:- use_module(
library(pairs)
).
(can be autoloaded)
[det]
transpose_pairs
(
+Pairs, -Transposed
)
Swap Key-Value to Value-Key. The resulting list is sorted using
keysort/2
on the new key.
ClioPatria
(version
V3.1.1-40-g9d9e003
)