keys: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] ([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2;</sqf>")
Line 14: Line 14:
|r1= [[Array]] - Array of all keys in the HashMap
|r1= [[Array]] - Array of all keys in the HashMap


|x1= <code>[[keys]] _myHashMap;</code>
|x1= <sqf>keys _myHashMap;</sqf>


|seealso= [[HashMap]]
|seealso= [[HashMap]]
}}
}}

Revision as of 13:16, 5 May 2022

Hover & click on the images for description

Description

Description:
Retrieves a list of all keys in a HashMap.
Groups:
HashMap

Syntax

Syntax:
keys hashMap
Parameters:
hashMap : HashMap
Return Value:
Array - Array of all keys in the HashMap

Examples

Example 1:
keys _myHashMap;

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