Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby array with unique values

array = ['foo', :bar, 'foo', :foobar]
array.uniq #=> ["foo", :bar, :foobar]
 
PREVIOUS NEXT
Tagged: #ruby #array #unique #values
ADD COMMENT
Topic
Name
9+2 =