From: ts Date: 2005-12-05T23:41:46+09:00 Subject: Re: increasing counter whithin loop? >>>>> "M" == Malte Milatz writes: try it, with array = [ :a, :b, :c, :d, :e , :b] M> array.each_with_index do |x, i| M> next if array[i-1] == :b M> print x, ' ' M> end :-) Guy Decoux