Merge branch 'haskell-minor'

This commit is contained in:
Geoff Liu 2015-03-16 14:25:24 -06:00
commit 752279248e

View File

@ -148,7 +148,7 @@ add 1 2 -- 3
-- Guards: an easy way to do branching in functions
fib x
| x < 2 = x
| x < 2 = 1
| otherwise = fib (x - 1) + fib (x - 2)
-- Pattern matching is similar. Here we have given three different