RedBlackTree.single

Checks if there is exactly one entry in the tree.

Arguments

None

Return values

condition
is TRUE if there is a single entry, FALSE otherwise.

Complexity

Constant

Example

"sl/redBlackTree" useFile a:((12 "aaa")) makeRedBlackTree; a.single print LF print 4 "bbb" a.insert a.single print
Output:
TRUE FALSE