createHashMapFromArray: Difference between revisions
Jump to navigation
Jump to search
(Create Page) |
m (formatting) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|game1= arma3dev | |game1= arma3dev | ||
| | |version1= 2.01 | ||
|gr1= HashMap | |||
|descr= Creates a new [[HashMap]] and initializes it from a key-value pair array | |descr= Creates a new [[HashMap]] and initializes it from a key-value pair array | ||
|s1= ''createHashMapFromArray''' [[key1, value1], [key2, value2]] | |||
| | |p1= key: [[HashMapKey]] | ||
|p2= value: [[Anything]] | |||
|p2= value: [[Anything]] | |||
| [[HashMap]] | |r1= [[HashMap]] | ||
|x1= <code>createHashMapFromArray [["a",1], ["b",2], ["c",3]];</code> | |x1= <code>[[createHashMapFromArray]] [["a",1], ["b",2], ["c",3]];</code> | ||
|x2= <code></code> | |x2= <code></code> | ||
|seealso= [[HashMap]] | |seealso= [[HashMap]] | ||
}} | }} | ||
Revision as of 15:23, 14 December 2020
Description
Syntax
- Syntax:
- createHashMapFromArray' [[key1, value1], [key2, value2]]
- Parameters:
- key: HashMapKey
- value: Anything
- Return Value:
- HashMap
Examples
- Example 1:
createHashMapFromArray [["a",1], ["b",2], ["c",3]];
- Example 2:
Additional Information
- See also:
- HashMap
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.01]][[ Category: arma3dev: New Scripting Commands | CREATEHASHMAPFROMARRAY]][[ Category: arma3dev: Scripting Commands | CREATEHASHMAPFROMARRAY]]