dict.eh
Dictionaries. More...
Types
Functions
Description
Dictionary is a set of key-value pairs. All keys are unique within one dictionary.
Every non-
null
value can be used as a key or as a value.
Dictionaries support syntax similar to that of arrays.
var dict = new Dict()
dict["Name"] = "John"
dict["Surname"] = "Doe"
|
Type details
A dictionary.
Function details
Creates new empty dictionary.
def Dict.set(key: Any, val: Any);
|
Maps given key to specified value.
Returns value to which given key is mapped in the dictionary.
Returns
null
if the key is not stored in dictionary.
def Dict.remove(key: Any);
|
Removes specified key and its corresponding value from the dictionary.
Does nothing if dictionary does not contain given key.
Removes all keys and values from this dictionary.
Returns all keys currently stored in the dictionary.
Returns number of pairs in this dictionary.
Returns string representation for this dictionary.
Returned string has the form
"{key1=value1, key2=value2, ...}"
.