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?
. For the case where there is an equal number of
p-groups and not-p-groups, we need to know which side to start the
zipWith. Does anyone have a better way?
Any comments and criticism are welcome.
-- Steven Huwig
___
Haskell-Cafe mailing list
[EMAIL
On Dec 3, 2004, at 1:28 PM, Steven Huwig wrote:
I am basically a newbie at Haskell, and have been experimenting with
it where typically I would use Python.
...
2) Do unravel and ravel have any other practical uses on their own?
Looking at it, I think they could be used in a single function