[ library(m_map) | Reference Manual | Alphabetic Index ]
from_corresponding_lists(++KeyList, ?ValueList, -Map)
Converts a corresponding pair of lists into a map.
- A list of keys
- A list of values corresponding to the keys in KeyList
- The created map
Converts a list of keys KeyList and a corresponding list of values
ValueList into a map Map. If a key appears more than once in
KeyList, then its corresponding value in the map Map will be
the last one appearing in AssocList.
Fails if the lists aren't the same length.
from_assoc_list / 2, det_insert_from_corresponding_lists / 4