From: Phrogz Date: 2007-04-03T12:10:05+09:00 Subject: Re: Last iteration condition On Apr 2, 8:56 pm, "Mike" wrote: > How could I know that current iteration is the last in the series? > For example: > > [1, 2, 3, 4, 5, 3, 4].each do |element| > print element.to_s > print ',' if !LAST > end ri each_with_index