Ruby - Blocks, Procs, and Lambdas
Find the error in this Ruby code that tries to create closures:
closures = []
3.times do |i|
closures << lambda { j }
j = i
end
closures.each { |c| puts c.call }