From: Michel Demazure Date: 2010-12-31T19:12:00+09:00 Subject: a common idiom I often have to write something like some_enumerator.collect ... # or collect.with_index ... .... next if ... ... end.reject(&:nil?) Is there a better way to do a "collect_unless_nil", avoiding the double processing ? _md -- Posted via http://www.ruby-forum.com/.