fib = Enumerator.produce([0, 1]) { |a, b| [b, a + b] }

print fib.take(10).map(&:first)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: