Garner, Robin Robin.Garner at
Fri Jan 2 14:36:36 EST 2004

It's not too difficult to do: think 'fold map' and put it in the form that
foldr needs.


-----Original Message-----
From: James Ealing [mailto:jamesealing2000 at]
Sent: Friday, 02 January, 2004 1:54 PM
To: haskell-cafe at
Subject: foldr

Hi all,

If I have a function:

it f [a0, a1, a2, ...] = [a0, f a1, f (f a2), ...]

Is there any way of expressing

it f

as an instance of foldr?

Many thanks,


Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now
Haskell-Cafe mailing list
Haskell-Cafe at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Haskell-Cafe mailing list