RedBlackTree (RedBlackTree)

Creates an empty RedBlackTree.

Arguments

None

Return values

tree
is the new RedBlackTree.

Complexity

Constant

Example

"sl/redBlackTree" useFile a: RedBlackTree; 1 "1" a.insert 3 "3" a.insert 2 "2" a.insert a [print LF print TRUE] enum
Output:
{ key: 1; value: "1"; } { key: 2; value: "2"; } { key: 3; value: "3"; }