kernel/common/array.rb
# Returns a new Array by removing duplicate entries
# from self. Equality is determined by using a Hash
Returns a new Array by removing duplicate entries
from self. Equality is determined by using a Hash
Returns a new Array by removing duplicate entries from self . Equality is determined by using a Hash
def uniq()
    seen, out = {}, self.class.new
    i = 0
    while(i < @total)
      elem = at(i)
      unless seen[elem]
        out << elem
        seen[elem] = true
      end
      i += 1
    end
    out
  end
def uniq ( ) seen , out = { } , self . class . new i = 0 while ( i < @total ) elem = at ( i ) unless seen [ elem ] out << elem seen [ elem ] = true end i += 1 end out end
Returns a new Array by removing duplicate entries
from self.
Returns a new Array by removing duplicate entries from self .