Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TheDong
on May 8, 2015
|
parent
|
context
|
favorite
| on:
The Earl Grey programming language
In haskell you can write exactly the following:
fact 0 = 0 fact 1 = 1 fact n = n * fact (n-1)
It works as you would expect and really they aren't that dissimilar.
FreeFull
on May 8, 2015
[–]
Small correction, fact 0 = 1
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: