a = [] a |=[9] b = [1,2,3] b |=[3] c = 7 c |=true p a,b,c exit
a={} bx= 0 c = Proc.new { |n| a[bx] = n } bx= 3 c.call(b) p a bx= 4 c.call(b) p a exit