ts: > try it, with > > array = [ :a, :b, :c, :d, :e , :b] Huh. Right. So it becomes array.each_with_index do |x, i| next if array[i-1] == :b unless i == 0 print x, ' ' end Nasty. Malte