3 ms·
I agree, I have not really understood the purpose of having multiple aliases for the same thing. It just bloats the language for me. Also, the following can be
by Alifatisk 3y ago
I agree, I have not really understood the purpose of having multiple aliases for the same thing. It just bloats the language for me.
Also, the following can be written even shorter:
[1,2,3,4,5].select { |num| num.even? }
Like this:
[1,2,3,4,5].select(:even?)