7 lines
69 B
Text
7 lines
69 B
Text
def fib( n ) =
|
|
a, b = 0, 1
|
|
|
|
for i <- 1..n
|
|
a, b = b, a+b
|
|
|
|
a
|