@ (BitSet)

Checks if an index is present in a bitset.

Arguments

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

Return values

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

Complexity

Constant

Example

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