! (RedBlackTree)

Sets an entry by key.

Arguments

The

value
to set.
key
to set the value by. If no entry with this key exists, an error will occur.
tree
is the RedBlackTree to update.

Return values

None

Complexity

O(log(size))

Example

"sl/redBlackTree" useFile a: ((35 "element") (0 "ZERO") (34 "Element")) makeRedBlackTree; 34 a @ print LF print "E L E M E N T" 34 a ! 34 a @ print
Output:
Element E L E M E N T