Has Determines the tree has the node of Key
(key T)
| 88 | |
| 89 | // Has Determines the tree has the node of Key |
| 90 | func (t *RB[T]) Has(key T) bool { |
| 91 | _, ok := searchTreeHelper[T](t.Root, t._NIL, key) |
| 92 | return ok |
| 93 | } |
| 94 | |
| 95 | // PreOrder Traverses the tree in the following order Root --> Left --> Right |
| 96 | func (t *RB[T]) PreOrder() []T { |
nothing calls this directly
no outgoing calls
no test coverage detected