Lennart Augustsson wrote:


> No, it will not be as efficient.  foldr is not the right primitive for making
> functions on lists.  You want the more general
>   recurse :: (a -> c a -> b -> b) -> b -> c a -> b

Could you give me some refrence on how that function is used as this is
the first time I herd of it.

What exactly does it do?  What would its defination for a list be.
How would you define a foldl, foldr, foldl1, foldr1, zip, etc.. with it.

-- 
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/


Reply via email to