This module extends the support for association lists in the
SWI-Prolog standard library.
- merge_assoc(+New:assoc, +Old:assoc, -Merge:assoc) is det
- Merges two association lists (New and Old) into one new
association list (Merge).
If the same key appear in both New and Old, then the value from
New is used and the value from Old is discarded.
- transpose_assoc(+Original:assoc, -Transposed:assoc) is det
- Transposes an association list, i.e., turns all keys into values and
all values into keys.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.
- empty_assoc(Arg1)
- is_assoc(Arg1)
- assoc_to_list(Arg1, Arg2)
- assoc_to_keys(Arg1, Arg2)
- assoc_to_values(Arg1, Arg2)
- gen_assoc(Arg1, Arg2, Arg3)
- get_assoc(Arg1, Arg2, Arg3)
- get_assoc(Arg1, Arg2, Arg3, Arg4, Arg5)
- list_to_assoc(Arg1, Arg2)
- map_assoc(Arg1, Arg2)
- map_assoc(Arg1, Arg2, Arg3)
- max_assoc(Arg1, Arg2, Arg3)
- min_assoc(Arg1, Arg2, Arg3)
- ord_list_to_assoc(Arg1, Arg2)
- put_assoc(Arg1, Arg2, Arg3, Arg4)
- del_assoc(Arg1, Arg2, Arg3, Arg4)
- del_min_assoc(Arg1, Arg2, Arg3, Arg4)
- del_max_assoc(Arg1, Arg2, Arg3, Arg4)