News for hackers. Stuff that matters.
Re:Most candidates cannot solve this interview problem by zzo38computer on Sunday February 07, 2021 @02:53AM (#26053418)
My own first idea was actually similar to yours, although I wrote:

  map (head &&& length) . group
(Also, it took me only a few seconds, because it just seemed obvious to me, even though Haskell is not the programming language I normally use for my projects, but it seems the right thing for this.)
Re:Most candidates cannot solve this interview problem by hyperrealgopher on Sunday February 07, 2021 @03:15AM (#26053506)
Ha, what a coincidence! Right before you posted this I just remembered (&&&) exists: https://gist.github.com/hyperrealgopher/19730725804ba8825d50...

Thanks for sharing!