Add - Haskell Hello World!

This commit is contained in:
Dušek Daniel (165256)
2018-10-06 09:14:59 +02:00
parent 3f1d1da695
commit a55f2e2793
2 changed files with 10 additions and 0 deletions

5
code/hello.hs Normal file
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)