Does Ruby have defined behavior for ‘each’ in the following:
x.each do |obj| ... x.change() # This may add or remove objects from x end
- Adding or removing objects ‘before’ obj.
- Adding or removing objects ‘after’ obj.
I’m primarily interested when x is an array.