Z
Zouplaz
Hello, I don't like the verbosity of these two lines
years = Array.new
2003.step(Time.now.year) { |a| years << a }
I would like to populate the year array on one statement but I don't
know how
Thanks in advance
years = Array.new
2003.step(Time.now.year) { |a| years << a }
I would like to populate the year array on one statement but I don't
know how
Thanks in advance