HashMap
19 scripting commands. Also as Markdown for agents.
- +Add two Numbers, concatenate two Arrays or two Strings, or create a copy of an Array or HashMap.
- applyApplies the given code to each element of the given data structure and collects the results in an array.
- countCan be used to count:
- createHashMapCreates a new empty HashMap.
- createHashMapFromArrayCreates a new HashMap and initializes it from a key-value pair array
- createHashMapObjectCreate a HashMap with an Object-Oriented Programming behaviour. Inside a object, Methods (if they are called correctly, either by engine or via call…
- deleteAtRemoves array element at the given index and returns removed element (modifies the original array, just like resize or set).
- forEachExecutes the given command(s) on every item of an Array or a HashMap.
- getRetrieves a value out of a HashMap after looking it up by its key.
- getOrDefaultRetrieves 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
- getOrDefaultCallRetrieves 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…
- hashValueProcesses provided value's hash, and encodes it using Base64. The hash algorithm is FNV-1A 64bit.
- inChecks 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…
- insertInserts multiple values into Array/String/HashMap. The String variant also supports forceUnicode. In the event of a HashMap, values, if they already…
- keysRetrieves a list of all keys in a HashMap.
- mergeMerges two HashMaps.
- setChanges the element at the given zero-based index of the array.
- toArrayConverts the supplied String into an Array of Numbers. The numbers in the created array are the decimal Unicode representations of characters.
- valuesReturns 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.