createHashMapFromArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Create Page)
 
m (formatting)
Line 1: Line 1:
{{Command
{{Command


|game1= arma3dev |Game name=
|game1= arma3dev


|version= 2.01 |Game version=
|version1= 2.01


____________________________________________________________________________________________
|gr1= HashMap


|descr= Creates a new [[HashMap]] and initializes it from a key-value pair array|Description=
|descr= Creates a new [[HashMap]] and initializes it from a key-value pair array


____________________________________________________________________________________________
|s1= ''createHashMapFromArray''' [[key1, value1], [key2, value2]]


| ''createHashMapFromArray''' [[key1, value1], [key2, value2]] |SYNTAX=
|p1= key: [[HashMapKey]]


|p1= key: [[HashMapKey]] |PARAMETER1=
|p2= value: [[Anything]]
|p2= value: [[Anything]] |PARAMETER2=


| [[HashMap]] |RETURNVALUE=
|r1= [[HashMap]]
____________________________________________________________________________________________


|x1= <code>createHashMapFromArray [["a",1], ["b",2], ["c",3]];</code> |Example 1=
|x1= <code>[[createHashMapFromArray]] [["a",1], ["b",2], ["c",3]];</code>


|x2= <code></code> |Example 2=
|x2= <code></code>
____________________________________________________________________________________________


|seealso=  [[HashMap]] |See Also=
|seealso=  [[HashMap]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|User Name]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Non-automatic appropriate categories go here, e.g
[[Category:Scripting Commands {{arma3}}|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
-->

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