So I want to use instance variables to do something like
@array.each {|x,y|x+y}
It doesn't seem to be working, and I'm wondering if that is the correct syntax to use with an instance variable, or should it be something like
@array.each |x, y| x+y
or
@array.each [|x,y| x+y]
Do I need to use yield
for this?