flip the values in the range [firstOfRange,endx)
(firstOfRange, endx int)
| 826 | |
| 827 | // flip the values in the range [firstOfRange,endx) |
| 828 | func (ac *arrayContainer) inot(firstOfRange, endx int) container { |
| 829 | if firstOfRange >= endx { |
| 830 | return ac |
| 831 | } |
| 832 | return ac.inotClose(firstOfRange, endx-1) // remove everything in [firstOfRange,endx-1] |
| 833 | } |
| 834 | |
| 835 | // flip the values in the range [firstOfRange,lastOfRange] |
| 836 | func (ac *arrayContainer) inotClose(firstOfRange, lastOfRange int) container { |