|
|
|
|
|
by pmontra
1109 days ago
|
|
Yes, when is the way to do loops in this language. From the hidden examples page functi fibonacci (n) => {
const var sum = 1!
const var i = 0!
when (i < n) {
sum += sum + previous sum!
i++!
}
}
when (i < 10) {
fibonacci(i)?
i++!
}
|
|