3 ms·
Oh right, that bit of unpleasantness. Mercifully, that's been fixed since 1.9: ruby-1.9.2-p0 > x = 0; xs = [1,2,3]; xs.each { |x| puts x }; puts x 1 2
by msbarnett 16y ago
Oh right, that bit of unpleasantness. Mercifully, that's been fixed since 1.9:
ruby-1.9.2-p0 > x = 0; xs = [1,2,3]; xs.each { |x| puts x }; puts x
1
2
3
0
=> nil