Ruby on Rails Discussions
Beginner question: create array with block?
rubyonrails-talk
Ivor
(Ivor)
October 25, 2006, 7:25am
1
m =
1.upto(40) {|x| m << [x.to_s + "'", x]}
cheers ivor
Taylor Strait wrote:
Related topics
Topic
Replies
Views
Activity
Beginner question: create array with block?
rubyonrails-talk
0
137
October 25, 2006
array issues
rubyonrails-talk
2
117
October 16, 2006
how do i use a loop to fill an array?
rubyonrails-talk
0
141
October 6, 2009
array problem
rubyonrails-talk
1
107
April 26, 2008
Help regarding a problem
rubyonrails-talk
0
144
May 13, 2018