Re: foldr oddity

2011-10-12 Thread Frodo Chao
Hi, Thank you all for you replies. I think now I understand Haskell better. Best regards, Frodo 2011/10/12 Frodo Chao > Hi, > > I came upon this when playing with foldr and filter. Compare the two > definitions: > > testr n = foldr (\x y -> x && y) True [t |

foldr oddity

2011-10-11 Thread Frodo Chao
es to ||. Should I mind the orderings of the parameters (especially the accumulator) in the function passed to foldr? Thak you for reading. Sincerely yours, Frodo Chao ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.