Finding set difference between ranges
I have 3 continuous (steps of 1) ranges a,a1,a2. All of them sorted.
I am performing the following operations on them
a = a.difference (a1)
a = a.difference(a2)
Now, this doesn't seem to make use of the fact that
1. They are sorted
2. They increase in steps of 1 .
Could someone suggest a better way of doing this to make these operations
Tejaswi D Prakash