I\'m kind of new to Ruby and some of the closure logic has me a confused. Consider this code:
array = [] for i in (1..5) array << lambda {i} end arra
What version of Ruby are you running this on? 1.8 does not have block scope for local variables, so j is still hanging around (and equal to 5) even after the end of the for.
for