#!/usr/local/bin/ruby #(1..Float::INFINITY).map{|n| n*2}.first(5) p (1..10).map{|n| n*2}.first(5)