[Haskell-cafe] Is this haskelly enough?

David F.Place d at vidplace.com
Tue Jul 17 19:26:56 EDT 2007


On Jul 17, 2007, at 7:10 PM, Bjorn Bringert wrote:

> Nice. Here's a pointless version:

Good Freudian slip.

>
> maxsubarrays = maximumBy (compare `on` sum) . (>>= tails) . inits

For the monadically-challenged, this is equivalent, yes-no?

maxsubarrays = maximumBy (compare `on` sum) . concat . (map tails) .  
inits


   ___________________
(---o-------o-o-o---o-o-o----(
David F. Place
mailto:d at vidplace.com




More information about the Haskell-Cafe mailing list