Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rewritten by @noradio http://twictur.es/i/952159046.gif

  • Loading branch information...
commit 3443a3be29338408ff1d06d8841744848dba9633 1 parent f845b37
@gilesbowkett authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/array.rb
View
2  lib/array.rb
@@ -1,6 +1,6 @@
class Array
def duplicates?(element)
- (self.select {|elem| elem == element}).size > 1
+ grep(element).size > 1
end
def stepwise
self.each do |element1|
Please sign in to comment.
Something went wrong with that request. Please try again.