BitSet (BitSet)

Creates an empty bitset for a given number of indexes.

Arguments

size
is an integer number.

Return values

bitset
is the new BitSet with no elements set.

Complexity

O(size)

Example

"sl/bitSet" useFile a: 5 BitSet; a.none print LF print TRUE 2 a ! TRUE 3 a ! "a=" print a.getSize [i a @ print "," print] times
Output:
TRUE a=FALSE,FALSE,TRUE,TRUE,FALSE,