@ (RedBlackTree)

Returns an entry by key.

Arguments

key
to get an entry by. If no entry with this key exists, an error will occur.
tree
is the RedBlackTree to get an entry from.

Return values

value
of the entry.

Complexity

O(log(size))

Example

"sl/redBlackTree" useFile a: ((35 "element") (0 "ZERO") (34 "Element")) makeRedBlackTree; 34 a @ print
Output:
Element