BitSet.xor=

Performs XOR operation for all indexes with another bitset of the same maximum size.

Arguments

bitset
to perform XOR operation with. If maximum sizes of the bitsets differ, an error will occur.

Return values

None

Complexity

O(size)

Example

"sl/bitSet" useFile a: (1 2) 4 makeBitSet; b: (1 3) 4 makeBitSet; "old a=" print a.getSize [i a @ print "," print] times LF print "old b=" print b.getSize [i b @ print "," print] times LF print b a.xor= "new a=" print a.getSize [i a @ print "," print] times
Output:
old a=FALSE,TRUE,TRUE,FALSE, old b=FALSE,TRUE,FALSE,TRUE, new a=FALSE,FALSE,TRUE,TRUE,