klyn.collections.SortedMapSync.operator[]
method
public native operator[](key as K) as V
Description

Gets or sets the value associated with the key.

Parameters
ParameterDescription
keyThe key to search for.
Returns

The value associated with the key.

Throws
  • KeyException if the key does not exist.
Example
values = SortedMapSync<String, Int>()
values["answer"] = 42
assert values["answer"] == 42