J
John-Mason P. Shackelford
What other idioms do you use for:
a=[]; 10.times{a<<callme() }
Array.new(10).map{ callme() }
Note: callme() returns a new value with each call.
Do I understand correctly that the former will be illegal under 1.9.1?
--
John-Mason Shackelford
Software Developer
Pearson Educational Measurement
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
(e-mail address removed)
http://pearsonedmeasurement.com
a=[]; 10.times{a<<callme() }
Array.new(10).map{ callme() }
Note: callme() returns a new value with each call.
Do I understand correctly that the former will be illegal under 1.9.1?
--
John-Mason Shackelford
Software Developer
Pearson Educational Measurement
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
(e-mail address removed)
http://pearsonedmeasurement.com