Enumerable#select used to return actual values

M

Marcelo

I don't deny the existence of use case of such method (although
I cannot think of any realistic one right now), but its name
should not be #compact, since it does far more than compacting
the receiver.

#transform ?

Take something, transform it into something else.

Marcelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,979
Members
47,578
Latest member
LC_06

Latest Threads

Top