catch :label do (1..10).each do |i| (11..13).each do |j| puts 'i=' + i.to_s + ', j=' + j.to_s throw :label if i == 3 and j == 12 end endend puts 'over'
No comments:
Post a Comment