Gistlib Logo

gistlib

other ruby categories

python code snippets in ruby

write this so that it lists all the fibonacci terms: `def fibo(n) n if n < 2 a = 1 b = 1 (1..n).each { |_| a, b = b, a + b } a end` in ruby

gistlibby LogSnag