From: Devin Mullins Date: 2007-04-03T12:48:22+09:00 Subject: Re: Last iteration condition Phrogz wrote: > On Apr 2, 8:56 pm, "Mike" wrote: >> How could I know that current iteration is the last in the series? >>[1, 2, 3, 4, 5, 3, 4].each do |element| > ri each_with_index You might also wanna restructure it as arr[0..-2].each(&blah); bloo[arr.last] depending on the logic at hand.