DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
ruby remove duplicates from array
array = [1,2,2,2,2,2,3,4,5,6,6,6,7,8,9] array.uniq
PREVIOUS
NEXT
Tagged:
#ruby
#remove
#duplicates
#array
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit