Skip to content

Commit

Permalink
Fixed haskell foldr example
Browse files Browse the repository at this point in the history
  • Loading branch information
TiddoLangerak committed Apr 27, 2015
1 parent d394fcc commit 745ce28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 745ce28

Please sign in to comment.