News for hackers. Stuff that matters.
Re:Fun with a Functional Programming Interview Question by zzo38computer on Sunday February 07, 2021 @02:45AM (#26053399)
I did it this way:

  map (head &&& length) . group
(Although in an actual full program, there would be other considerations (what considerations those are depends on the program being written), and in a full program I probably would not be using Haskell, but rather C.)

There are no comments on this comment yet.