Range consolidation: Difference between revisions
Content added Content deleted
Line 547: | Line 547: | ||
var z = list.len()-1 |
var z = list.len()-1 |
||
while z >= 1 { |
while z >= 1 { |
||
for y in (z - 1)..0 { |
for y in (z - 1)^-1..0 { |
||
if overlap(list[z], list[y]) { |
if overlap(list[z], list[y]) { |
||
list[y] = consolidate(list[z], list[y]) |
list[y] = consolidate(list[z], list[y]) |