Range.single

Checks if the range contains only one element. Not applicable to RedBlackTreeRange.

Arguments

None

Return values

condition
is TRUE is there is exactly one entry, FALSE otherwise.

Complexity

Constant

Example

"sl/linkedList" useFile l: (1 2 3) makeList; h:r:t: l.makeRange.unhead.untail;;; r.single print
Output:
TRUE