PublicShow -- Operations on key-value lists

This module implements common operations on Key-Value lists, also known as Pairs. Pairs have great practical value, especially due to keysort/2 and the library

This library is based on disussion in the SWI-Prolog mailinglist, including specifications from Quintus and a library proposal by Richard O'Keefe.

- Jan Wielemaker
See also
- keysort/2, library(assoc)
Source pairs_keys_values(?Pairs, ?Keys, ?Values) is det
True if Keys holds the keys of Pairs and Values the values.

Deterministic if any argument is instantiated to a finite list and the others are either free or finite lists. All three lists are in the same order.

See also
- pairs_values/2 and pairs_keys/2.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source map_list_to_pairs(Arg1, Arg2, Arg3)
Source transpose_pairs(Arg1, Arg2)
Source group_pairs_by_key(Arg1, Arg2)
Source pairs_keys(Arg1, Arg2)
Source pairs_values(Arg1, Arg2)