Method: Cantor::AbsoluteSet#union
- Defined in:
- lib/cantor/absolute_set.rb
#union(other) ⇒ Object
149 150 151 152 153 154 155 156 157 |
# File 'lib/cantor/absolute_set.rb', line 149 def union(other) if other.is_a?(AbsoluteSet) and other.universe.eql?(@universe) copy(:mask => @mask | other.mask) elsif other.is_a?(AbstractSet) and other.infinite? other.union(self) else copy(:mask => @mask | as_mask(other, true)) end end |