Hashtable.get

Get the value corresponding to the given key; if it doesn't exist return nullValue.

struct Hashtable(K, V)
V
get
(
this _
)

Parameters

key K

the key corresponding to a value

nullValue V

a value that will be returned if there is no such key-value pair

Return Value

Type: V

the corresponding key value, or nullValue.

Complexity: O(n), where n is the number of elements in the corresponding key bucket.

Meta