arr = ["a","b","c"] set = Set.new [1,2] arr.delete_at set # => arr = ["a"]
arr.delete_if.with_index { |_,index| set.include? index }