5 lines
88 B
Text
5 lines
88 B
Text
func fib_iter(n) {
|
|
var (a, b) = (0, 1)
|
|
{ (a, b) = (b, a+b) } * n
|
|
return a
|
|
}
|