#!/usr/bin/ruby # encoding: utf-8 tomb = [5, 6, 7, 8, 9, 10] b = Array.new b = tomb.collect{|a| 2 * a} puts b