or (BitSet)

Creates a new bitset as a result of OR operation for operands.

Arguments

bitset0
and
bitset1
are the operand BitSets. If their maximum sizes differ, an error will occur.

Return values

bitset2
is the resulting BitSet.

Complexity

O(size)

Example

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