Hi Everyone, Wondering if someone could explain why this doesn't work as (I) expected...
array = [ "a", "b", "c" ] array.each do |item| array.delete(item) end array => [ "b" ] Why isn't the array empty ( array => [] )? Is there a better approach? Thanks, James --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
