Y
Hacker News
new
|
ask
|
show
|
jobs
by
dotancohen
2165 days ago
True, but then the "worker" fib() method should be called fib_calculate() and should be wrapped by fib() which then returns a single integer. I believe that breaks the spirit of the question.
2 comments
Taek
2165 days ago
Really it's about this type of discussion. Already with your 'but then' you are showing that you know your way around a program.
I'd still have you write the full thing out, but I'm guessing you'd do just fine.
link
Smaug123
2164 days ago
I'd use `go`, by ancient Haskell law and custom ;)
link
I'd still have you write the full thing out, but I'm guessing you'd do just fine.