orArray finds the union of rc and ac.
(ac *arrayContainer)
| 2235 | |
| 2236 | // orArray finds the union of rc and ac. |
| 2237 | func (rc *runContainer16) orArray(ac *arrayContainer) container { |
| 2238 | if ac.isEmpty() { |
| 2239 | return rc.clone() |
| 2240 | } |
| 2241 | if rc.isEmpty() { |
| 2242 | return ac.clone() |
| 2243 | } |
| 2244 | intervals, cardminusone := runArrayUnionToRuns(rc, ac) |
| 2245 | result := newRunContainer16TakeOwnership(intervals) |
| 2246 | return result.toEfficientContainerFromCardinality(int(cardminusone) + 1) |
| 2247 | } |
| 2248 | |
| 2249 | // orArray finds the union of rc and ac. |
| 2250 | func (rc *runContainer16) orArrayCardinality(ac *arrayContainer) int { |
no test coverage detected