merge: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Minor fixes) |
m (version) |
||
Line 3: | Line 3: | ||
|game1= arma3dev | |game1= arma3dev | ||
|version1= 2. | |version1= 2.02 | ||
|gr1= HashMap | |gr1= HashMap |
Revision as of 12:17, 3 February 2021
Description
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, then its value is overwritten with the corresponding value from hashMap2
- Return Value:
- Nothing
Alternative Syntax
- 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 (Optional, default: false): Boolean - 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:
_hashMap merge _otherHashMap;
Additional Information
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
[[Category:Introduced with arma3dev version 2.02]][[ Category: arma3dev: New Scripting Commands | MERGE]][[ Category: arma3dev: Scripting Commands | MERGE]]