From: Joel Pearson Date: 2013-02-15T19:55:34+09:00 Subject: Re: skip iteration in each loop You could use Array.partition for that if you wanted both outputs as well discard, keep = [1, 2, 3, 4, 5, 6, 7, 8].partition { |n| [3,4].index n } -- Posted via http://www.ruby-forum.com/.