copy (BitSet)

Copies a bitset.

Arguments

bitset0
is the BitSet to copy.

Return values

bitset1
is a copy of the intiial BitSet.

Complexity

O(size)

Example

"sl/bitSet" useFile a: (0 2 4) 5 makeBitSet; b: a copy; TRUE 1 a ! FALSE 2 b ! "a=" print a.getSize [i a @ print "," print] times LF print "b=" print b.getSize [i b @ print "," print] times
Output:
a=TRUE,TRUE,TRUE,FALSE,TRUE, b=TRUE,FALSE,FALSE,FALSE,TRUE,