Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
del_map/3
Description
del_map/3 is an Erlang function exported by "age_lists" module.
This function is searching for a map within a list of terms with particular pair of key name and value associated to this key, and deletes the map found within the input list.
References
None
Parameters
Name
Type
MapKey
atom()
Map key name.
MapValue
any()
Associated value with the MapKey.
Input
list()
Input list of terms, including maps.
Result
Value or Type
Returns list with terms without all relevant maps to selected MapKey/MapValue.
Code Sample
> age_lists:del_map(b, 20, [#{a => 1, b => 2, c => 3}, {d, 4}, #{a => 10, b => 20}]). [#{a => 1,b => 2,c => 3}, {d,4}]