News for hackers. Stuff that matters.
Re:Functools – The Power of Higher-Order Functions in Python by sfvisser on Friday July 09, 2021 @02:56AM (#27781113)
It's common in other languages as well (at least Haskell) and a bit surprising at first. However, a `.sortBy(fn).groupBy(fn)` is easy and of similar efficiency and when you actually need the local-only `groupBy()` you're happy it's there.

A bit more expressive overall.

At least it is better than lodash' useless groupBy which creates this weird key value mapping, loses order and converts keys to string and what not.

There are no comments on this comment yet.