Merge pull request #163 from dusekdan/new-haskell-sample

Add - Haskell Hello World!
This commit is contained in:
Luke Oliff
2018-10-06 09:38:42 -07:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
{-# In Haskell, fibonacci function is considered a Hello world! application. #-}
fibAcc n = go n (0,1)
where
go !n (!a, !b) | n==0 = a
| otherwise = go (n-1) (b, a+b)