mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2025-07-30 13:30:16 +00:00
Add - Haskell Hello World!
This commit is contained in:
5
code/hello.hs
Normal file
5
code/hello.hs
Normal 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)
|
Reference in New Issue
Block a user