Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
update_map/3
Description
update_map/3 is an Erlang function exported by "age_lists" module.
This function updates map item from input list with a new one found only by selected MapKey.
References
None
Parameters
Name
Type
MapKey
atom()
Map key name.
NewMap
map()
Map to be replaced
Input
list()
Input list of terms, including maps.
Result
Value or Type
Returns list of terms.
Code Sample
> age_lists:update_map(b, #{a => 100, b => 200, c => 300}, [#{a => 1, b => 2, c => 3}, {d, 4}]). [#{a => 100, b => 200, c => 300}, {d,4}]