Join Slack
Powered by
Can it be done recursively? Can I somehow create a...
# announcements
a
adam-mcneilly
01/17/2018, 2:55 AM
Can it be done recursively? Can I somehow create a one liner fibonacci in Kotlin? 🤔
g
gildor
01/17/2018, 2:58 AM
What do you mean?
a
adam-mcneilly
01/17/2018, 3:01 AM
If you could reference the intarray inside the lambda, but it doesn't look like you can (nor should you be able to, I was just trying to be clever).
g
gildor
01/17/2018, 3:02 AM
You cannot.
x
is not initialised yet and you have only index
2
Views
Open in Slack
Previous
Next