BitSet.at

Checks if an index is present in the bitset.

Arguments

index
is an integer number, zero-based. If the index is out of range, an error will occur.

Return values

condition
is TRUE if the corresponding element is set, FALSE otherwise.

Complexity

Constant

Example

"sl/bitSet" useFile a: (1 3 5) 8 makeBitSet; 2 a.at print "," print 3 a.at print
Output:
FALSE,TRUE