[Haskell-cafe] Parse text difficulty

Conor McBride ctm at cs.nott.ac.uk
Thu Dec 9 12:55:09 EST 2004


Hi

Jan-Willem Maessen - Sun Labs East wrote:
> Tomasz Zielonka wrote:
> 
>>I found it useful recently, when I needed zip functions for Trees - this way I
>>didn't have to define functions for 3 trees, 4 trees, and so on.
> 
> 
> Note also that:
> 
> repeat f `zwApply` xs  =  map f xs
> 
> When cooking up my own collection-y things (including splittable
> supplies, for example), I generally provide fmap and an equivalent of
> zwApply (a generic repeat is not quite so simple or useful).  It's a
> nice little idiom, and a recommend it highly.
               ^^^^^

Funny you should choose that word:

   http://www.mail-archive.com/haskell@haskell.org/msg15073.html

saves me banging the same old drum.

Cheers

Conor

PS Many apologies for not having written this up yet!

-- 
http://www.cs.nott.ac.uk/~ctm        [I've moved again...]


More information about the Haskell-Cafe mailing list