Musings of a Gotham City Geek
What is the sound of one blog clapping?
# NOTE: This actually operates on the
# array passed in, if that is
# not immediately obvious.
def fudgify_duplicates(points)
points.each_with_index do |point, index|
unless index == 0
last = points[index-1][0]
point[0] = last + 1 if point[0] <= last
end
end
end