foldr

Garner, Robin Robin.Garner at crsrehab.gov.au
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.

cheers 

-----Original Message-----
From: James Ealing [mailto:jamesealing2000 at yahoo.co.uk]
Sent: Friday, 02 January, 2004 1:54 PM
To: haskell-cafe at haskell.org
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,

Jim

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://haskell.org/pipermail/haskell-cafe/attachments/20040102/4a5fdd4b/attachment.htm


More information about the Haskell-Cafe mailing list