createHashMapFromArray
Jump to navigation
Jump to search
Hover & click on the images for descriptions
Description
- Description:
- Creates a new HashMap and initializes it from a key-value pair array
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:
-