From: MenTaLguY Date: 2007-10-31T08:21:00+09:00 Subject: Re: RUBY DRY to replace 6 lines in 1 >> farthest_distance = farthest_proposition.distance_to(origin) >> zl = DISTANCE.zip(ZL.reverse).find { |distance, _| >> farthest_distance <= distance >> }.first Ah, I just noticed a bug here in my code. This should be .last, rather than .first, since the zoom level is the second item in the pair. -mental