Algorithm.single
Checks if there is exactly one element in an enumerable.
Arguments
The
enumerable
to check.
Return values
condition
is TRUE if there is one element, FALSE otherwise.
Complexity
Depends on the enumerable.
Example
Output:
TRUE
TRUE
TRUE