groupBy(\\x y -> foo x == foo y)(sortOn foo a)
How to make this code shorter? (\\x y -> foo x == foo y)- I think it\'s possible t
(\\x y -> foo x == foo y)