From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Merges two HashMaps.
- Groups:
- HashMap
Syntax
- Syntax:
- hashMap1 merge hashMap2
- Parameters:
- hashMap1: HashMap - this HashMap will be modified
- hashMap2: HashMap - all key-value pairs from this HashMap are added to hashMap1. If a key from hashMap2 already exists in hashMap1, it doesn't overwrite the value in hashMap1.
- Return Value:
- Nothing
- Syntax:
- hashMap1 merge [hashMap2, overwriteExisting]
- Parameters:
- hashMap1: HashMap - this HashMap will be modified
- hashMap2: HashMap - all key-value pairs from this HashMap are added to hashMap1
- overwriteExisting: Boolean - (Optional, default false) if true, keys from hashMap1 that also exist in hashMap2 are overwritten. When set to true, merging is faster
- Return Value:
- Nothing
Examples
- Example 1:
Copy_hashMap merge _otherHashMap;
- Example 2:
- Example 3:
- Example 4:
Additional Information
- See also:
- insert set
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note