[ library(m_tree234) | Reference Manual | Alphabetic Index ]

assoc_list_to_tree234(+AssocList, -Tree)

Converts an association list into a tree.
AssocList
A list of key-value pairs
Tree
A 2-3-4 tree

Description

AssocList is a list of key/value pairs of the form Key-Value, and Tree is a tree containing these key/value pairs. If a key appears more than once in AssocList, then its corresponding value in the tree Tree will be the last one appearing in AssocList.

Fail Conditions

Never fails.

Resatisfiable

no

See Also

tree234_to_assoc_list / 2