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:[EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe