BitSet.all

Checks if all indexes are present in the bitset.

Arguments

None

Return values

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

Complexity

O(size)

Example

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