Every one of the examples shown at the top of the page uses the redBlackTree function which takes a sequence of items.
There isn't a single example that begins with an empty tree or that uses new. Yet, because RedBlackTree is a class, you _must_ use new to create a new empty tree.
I think there should be at least one example showing how to create an empty tree, and then populate it with some values.
Comment #1 by robert.schadek — 2024-12-01T16:36:27Z