Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_maps
add_values/2
Description
add_values/2 is an Erlang function exported by "age_maps" module.
Adds and merges list of tuples {Key, Value} into an existing map structure.
References
None
Parameters
Name
Type
Set
list()
List with tuples {Key, Value}
Map
map()
Map structure
Result
Value or Type
Returns an updated map structure.
Code Sample
> age_maps:add_values([{a, 1}, {b, 2}], #{b => 0, c => 3, d => 4}). #{a => 1,b => 2,c => 3,d => 4}