summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCornel Punga <cornel.punga@gmail.com>2015-03-16 21:24:21 +0200
committerCornel Punga <cornel.punga@gmail.com>2015-03-16 21:24:21 +0200
commit9fb21f1ce4c02e8cad50046f90d026ccab284626 (patch)
tree91b90a58f5b36a8e7c361a16a124b87b8f716d7a
parentadb92e5263cdb0e156c4c29dd3a48a9a042ade1e (diff)
Haskell.html.markdown. Wrong result of an expression.
The seventh Fibonacci number is 13 (odd number), so the result of 'even 13' is false.
-rw-r--r--haskell.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index d5dfd122..f1025d44 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -208,13 +208,13 @@ foo 5 -- 75
-- to get rid of a lot of parentheses:
-- before
-(even (fib 7)) -- true
+(even (fib 7)) -- false
-- after
-even . fib $ 7 -- true
+even . fib $ 7 -- false
-- equivalently
-even $ fib 7 -- true
+even $ fib 7 -- false
----------------------------------------------------
-- 5. Type signatures