|
@ -18,6 +18,7 @@ class RangeSet: |
|
|
n = int(part) |
|
|
n = int(part) |
|
|
result.append(range(n, n+1)) |
|
|
result.append(range(n, n+1)) |
|
|
return result |
|
|
return result |
|
|
|
|
|
# TODO: iteration. Will require deduplication. |
|
|
# TODO: simplification of inner ranges |
|
|
# TODO: simplification of inner ranges |
|
|
# TODO: Set operations: union, intersection, difference? |
|
|
# TODO: Set operations: union, intersection, difference? |
|
|
# TODO: Comparison to classic range objects (only to check that it represents the same numbers) |
|
|
# TODO: Comparison to classic range objects (only to check that it represents the same numbers) |
|
|