#!/usr/bin/env ruby
# Sample Ruby script
def fib(n)
  a, b = 0, 1
  n.times.map { a.tap { a, b = b, a + b } }
end
puts fib(10).inspect
