[Haskell-cafe] Re: Reversing a string of words: C# v Perl V Ruby v Haskell

David House dmhouse at gmail.com
Thu Dec 14 14:07:13 EST 2006


On 13/12/06, Ulf Norell <ulfn at cs.chalmers.se> wrote:
> reverseWords = concat . reverse . groupBy ((==) `on` isSpace)

Didn't equating go in?

reverseWords = concat . reverse . groupBy (equating isSpace)

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list