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/.