Foldr Function in ML 
Author Message
 Foldr Function in ML

Hi,
Can anyone explain the foldr function to me.

Regards,
Ed.



Thu, 08 Feb 2001 03:00:00 GMT  
 Foldr Function in ML
Hello!


Quote:

>Hi,
>Can anyone explain the foldr function to me.

Suppose you call
  foldr f i [l1,l2,l3,...,ln]

The result is this:

f(l1,f(l2,f(l3,... f(ln,i))))

Regards,

Felix.



Fri, 09 Feb 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Functions vs values in ML

2. ML Functions

3. ML-like alternatives to out parameters for functions

4. Moscow ML 1.40, a compact Standard ML system

5. ML compiler -- Standard ML of NJ

6. foldl/foldr

7. newbie question: Haskell foldr space efficiency

8. foldl/foldr, was: Re: Algorithm for permutations?

9. foldr vs foldl in Haskell

10. Are foldl and foldr Useful? (troll/sarcasm)

11. Richard Bird foldr paper???

12. miranda foldr

 

 
Powered by phpBB® Forum Software