bag_merge()
Merges dynamic property-bags into a dynamic property-bag with all properties merged.
Syntax
bag_merge(bag1, bag2[, *bag3*, ...])
Arguments
- bag1...bagN: Input
dynamicproperty-bags. The function accepts between 2 to 64 arguments.
Returns
Returns a dynamic property-bag. Results from merging all of the input property-bag objects. If a key appears in more than one input object, an arbitrary value (out of the possible values for this key) will be chosen.
Example
Expression:
print result = bag_merge(
dynamic({'A1':12, 'B1':2, 'C1':3}),
dynamic({'A2':81, 'B2':82, 'A1':1}))
| result |
|---|
| { "A1": 12, "B1": 2, "C1": 3, "A2": 81, "B2": 82 } |