Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
merge_keys/2
Description
merge_keys/2 is an Erlang function exported by "age_lists" module.
Merges to lists of terms with Keys and Values, where the keys from Left list override the keys from Right list in case of collision.
References
•merge/2
Parameters
Name
Type
Left
list()
Input list of terms.
Right
Result
Value or Type
Returns a list of merged key/values.
Code Sample
> age_lists:merge_keys([{a, 1}, {b, 2}, {c, 3}], [{b, 200}, {z, 300}]). [{a,1}, {b,2}, {c,3}, {z,300}]