Slide 88
Slide 88 text
[1,2,3].map(&_{ _ + 1 })
[1,2,3].select(&_{ _ * 2 < 3 })
[1,2,3].reduce(&_{ _ + _ * 2 })
[1,2,3].map(&_{ 1 + _ })
But, with a little bit of added ugliness, we can get things to work exactly like they do in Scala.
This has definitely crossed the threshold into “bad idea” territory where it’s not generally
useful, but I think the “how” behind this is interesting enough to look into.