mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-12-22 13:22:39 +00:00
Merge pull request #163 from dusekdan/new-haskell-sample
Add - Haskell Hello World!
This commit is contained in:
commit
094cd8f756
@ -296,6 +296,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU
|
||||
- Interested in node, ionic, angular, docker
|
||||
- [![github-alt][github-img]](https://github.com/davidmoura07)
|
||||
|
||||
### Daniel Dusek
|
||||
- No one of consequence.
|
||||
- [![twitter-alt][twitter-img]](https://twitter.com/DusekDan)
|
||||
- [![github-alt][github-img]](https://github.com/DusekDan)
|
||||
|
||||
# E
|
||||
|
||||
### Elijah Rwothoromo
|
||||
|
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)
|
Loading…
Reference in New Issue
Block a user