lookup

fun lookup(key: <Error class: unknown class>? = null): <Error class: unknown class>?

Gets the value corresponding to the given key. Since a #GTree is automatically balanced as key/value pairs are added, key lookup is O(log n) (where n is the number of key/value pairs in the tree).

Return

the value corresponding to the key, or null if the key was not found

Parameters

key

the key to look up