I am using the ruby array splat like this:
array = *1,2,3
Output = [1, 2, 3]
count = 10 #Initializing count
Question: I want the array to be continued till the count = 10
when I try this it doesn't work array = *1,..,count
Expected Output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Is there any possible way to succeed with this way of approach.
2
and3
doing? – sawa Jun 4 '13 at 11:19