From: Sergey Volkov Date: 2007-06-03T12:28:54+09:00 Subject: Re: [QUIZ] FizzBuzz (#126) ----- Original Message ----- From: "Ari Brown" To: "ruby-talk ML" Sent: Saturday, June 02, 2007 10:12 PM Subject: Re: [QUIZ] FizzBuzz (#126) .. > Also, i seem to be unable to put a range into an array. Yes, i > understand this is very simple, but when I did what I THOUGHT would > work, I can't get a range of numbers to be inserted into an array. > Apparently this does not work: > array = [] > array = array << (1..100) array = (1..100).to_a # or array = [*1..100] # or (golfers favorite?) array = *1..100 # or (if you need to add it to existing array): array.push *1..100