1ec72afe32
Deleting elements of an array while iterating on it results in never seeing the last element. > a = [1,2,3] => [1, 2, 3] > a.each do |e| > p a > a.delete(e) > end [1, 2, 3] [2, 3] => [2] |
||
---|---|---|
.. | ||
generator | ||
fetcher.rb | ||
helper.rb | ||
parser.rb | ||
reader.rb | ||
task.rb | ||
version.rb |