nardonykolyszyn / gmail.com wrote:
> (1..10).map { |e| e.even? ? (e * 2) : e }

Yeah, but without `#filter` this is still an array with 10 elements.

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>