4 lines
72 B
Ruby
4 lines
72 B
Ruby
def fib_gen
|
|
a, b = 1, 1
|
|
lambda {ret, a, b = a, b, a+b; ret}
|
|
end
|