News for hackers. Stuff that matters.
Re:Destroy All Ifs – A Perspective from Functional Programming by eru on Sunday July 17, 2016 @02:27AM (#12109236)
And Haskell uses operator sections: (==0) would be similar to { it == 0 }. Alas, the section syntax get a bit cumbersome when you want to compose two or more of them, like in this translation of your example:

    filter ((0==) . (%2)) [1, 2, 3, 4]

There are no comments on this comment yet.