Algorithm.empty

Checks if there are no elements in an enumerable.

Arguments

The

enumerable
, can be a Container, a Range, or a builtin-list.

Return values

condition
is TRUE if there are no elements, FALSE otherwise.

Complexity

Depends on the enumerable.

Example

"sl/algorithm" useFile "sl/linkedList" useFile a: List; a empty print LF print () empty print LF print a range empty print
Output:
TRUE TRUE TRUE