makeBitSet (BitSet)

Creates a new bitset for a given number of indexes, with initial indexes enumerated in a list.

Arguments

list
is a builtin-list with the initial indexes to set.
size
is the maximum number of indexes in the BitSet being created.

Return values

The resulting

bitset
.

Complexity

O(size)

Example

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