Seriously though, the point free style is nice for these because x => x * 2 doesn't really confer much more meaning than _ * 2, and if you're chaining a bunch of lambda applications together it reduces the size of your code without reducing its readability.
View all comments
Show parent comment
4
u/nachsicht Jul 27 '13
To be truly inspired by scala it should be [1,2,3].map(_ * 2)