|
|
|
|
|
by eru
3625 days ago
|
|
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]
|
|