module Gemmy::Patches::ArrayPatch::InstanceMethods::NonUniq

Public Instance Methods

nonuniq() click to toggle source

facets

# File lib/gemmy/patches/array_patch.rb, line 201
def nonuniq
  h1 = {}
  h2 = {}
  each {|i|
    h2[i] = true if h1[i]
    h1[i] = true
  }
  h2.keys
end