On Dec 6, 2004, at 11:05 PM, Tom Pledger wrote:
import Data.Char(isSpace) import Data.List(groupBy)
(op `on` f) x y = f x `op` f y wordsAndSpaces = groupBy ((==) `on` isSpace)
`on` is a handy little function in this instance.
Does it have a technical name? Have you used it elsewhere?
-- Steve
_______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe