gistlib
other ruby categories
even code snippets in ruby
here sum all fibonacci terms that are even: `def fibona(n) return n if n < 2 fib_sequence = [1, 1] (1...n).each do |_| fib_sequence << fib_sequence[-1] + fib_sequence[-2] end fib_sequence end` in ruby
gistlib
by LogSnag