BitSet.any

Checks if there are any indexes in the bitset.

Arguments

None

Return values

condition
is TRUE if any elements are set, FALSE otherwise.

Complexity

O(size)

Example

"sl/bitSet" useFile b: 3 BitSet; b.any print LF print TRUE 1 b ! TRUE 2 b ! b.any print LF print TRUE 0 b ! b.any print
Output:
FALSE TRUE TRUE