createHashMapFromArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatting)
mNo edit summary
Line 9: Line 9:
|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]]  
|s1= [[createHashMapFromArray]] [[key1, value1], [key2, value2]]  


|p1= key: [[HashMapKey]]
|p1= key: [[HashMapKey]]

Revision as of 15:23, 14 December 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.01|2.01]]
Hover & click on the images for description

Description

Description:
Creates a new HashMap and initializes it from a key-value pair array
Groups:
HashMap

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]]