concatenate_maps_list

Concatenate a collection of maps into a single map, overriding with successive keys.

github

Arguments

NameDescriptionType
xCollection of map objects. Each map is added together with increasing importance; successive map keys override those already defined.maps

Output value

A map with every key from every map in x.

Example

x = [first: 'sherlock', second: 'john']
y = [first: 'del boy', third: 'rodney']

concatenate_maps_list([x,y])
// { "first": "del boy",
//   "second": "john",
//   "third": "rodney" }