DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit