Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby array remove by index

a= [1,1,1,2,2,3]
delete_list = [1,3]
delete_list.each do |del|
    a.delete_at(a.index(del))
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #array #remove #index
ADD COMMENT
Topic
Name
7+5 =