[Haskell-cafe] Mapping over multiple values of a list at once?

Martijn van Steenbergen martijn at van.steenbergen.nl
Thu Aug 27 04:28:33 EDT 2009

Right. How about:

f = map ((`div` 3) . sum . take 3) . tails

You probably want to do filter out some of the tails. Not sure where 
transpose comes into play, but tails is your friend here.


Miguel Mitrofanov wrote:
> transpose & tails, I guess.

More information about the Haskell-Cafe mailing list