summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTiddo Langerak <tiddolangerak@gmail.com>2015-04-27 10:16:16 +0200
committerTiddo Langerak <tiddolangerak@gmail.com>2015-04-27 10:16:16 +0200
commit745ce28d7e72a1de6a1a386f91f8fcae0c99b324 (patch)
treee9c8c31a8b45d40cd22b8ddb380546e630cc20aa
parentd394fcc96a967e88d72c429350edb4c1e01455f1 (diff)
Fixed haskell foldr example
For #1068
-rw-r--r--haskell.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index f28fcfe7..6a64442f 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -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