# HashMap (scripting commands)

- [+](../../commands/~2B.md): Add two Numbers, concatenate two Arrays or two Strings, or create a copy of an Array or HashMap.
- [apply](../../commands/apply.md): Applies the given code to each element of the given data structure and collects the results in an array.
- [count](../../commands/count.md): Can be used to count: - The number of elements in an array (returns the already internally known array size) - The number of elements in an array matching the condition - The number of sub-entries in a config entry -…
- [createHashMap](../../commands/createHashMap.md): Creates a new empty HashMap.
- [createHashMapFromArray](../../commands/createHashMapFromArray.md): Creates a new HashMap and initializes it from a key-value pair array
- [createHashMapObject](../../commands/createHashMapObject.md): Create a HashMap with an Object-Oriented Programming behaviour.
- [deleteAt](../../commands/deleteAt.md): Removes array element at the given index and returns removed element (modifies the original array, just like resize or set).
- [forEach](../../commands/forEach.md): Executes the given command(s) on every item of an Array or a HashMap.
- [get](../../commands/get.md): Retrieves a value out of a HashMap after looking it up by its key.
- [getOrDefault](../../commands/getOrDefault.md): Retrieves a value out of a HashMap after looking it up by its key. When the HashMap doesn't contain the key, the default value is returned
- [getOrDefaultCall](../../commands/getOrDefaultCall.md): Retrieves a value from the HashMap for the given 'key', executes given 'code' if key was not found and returns result. Additionally sets key to the code result value if *set* is true.
- [hashValue](../../commands/hashValue.md): Processes provided *value*'s hash, and encodes it using Base64. The hash algorithm is FNV-1A 64bit.
- [in](../../commands/in.md): Checks whether value is in array, unit is in vehicle, position is inside location or ANSI string is part of other ANSI string. If Unicode support is desired, see forceUnicode.
- [insert](../../commands/insert.md): Inserts multiple values into Array/String/HashMap.
- [keys](../../commands/keys.md): Retrieves a list of all keys in a HashMap.
- [merge](../../commands/merge.md): Merges two HashMaps.
- [set](../../commands/set.md): Changes the element at the given zero-based index of the array.
- [toArray](../../commands/toArray.md): Converts the supplied String into an Array of Numbers. The numbers in the created array are the decimal Unicode representations of characters.
- [values](../../commands/values.md): Returns all values stored in the given HashMap. The order of the returned Array corresponds to the order of the Array returned by the keys command.
