Fixed haskell foldr example

For #1068
This commit is contained in:
Tiddo Langerak 2015-04-27 10:16:16 +02:00
parent d394fcc96a
commit 745ce28d7e

View File

@ -282,7 +282,7 @@ foldl (\x y -> 2*x + y) 4 [1,2,3] -- 43
foldr (\x y -> 2*x + y) 4 [1,2,3] -- 16
-- This is now the same as
(2 * 3 + (2 * 2 + (2 * 1 + 4)))
(2 * 1 + (2 * 2 + (2 * 3 + 4)))
----------------------------------------------------
-- 7. Data Types