merge_maps/3 is an Erlang function exported by "age_lists" module. This function merges a map items from one list to another map item from second list found by selected key. This function preserves all other terms from input lists. The code sample below shows how to fins a map with key "a" into Left list and merge it with a map with the same key into Right list. The result of this operation generates a merged map with key names "a", "b" and "c" but preserves all other terms which are irrelevant to this comparison. |
|
|