Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
merge_maps/2
Description
merge_maps/2 is an Erlang function exported by "age_lists" module.
This function merges all map items from two lists into one map by preserving all other terms from input lists.
References
•merge/2
Parameters
Name
Type
Left
list()
List of terms.
Right
Result
Value or Type
Returns a merged list of terms.
Code Sample
> age_lists:merge_maps([#{a => 1, b => 2}, {z, 100}], [#{a => 1, c => 3}, 12.5, #{d => 4, e => 5}]). [#{a => 1,b => 2,c => 3,d => 4,e => 5}, 12.5, {z,100}]