Permalink
Browse files

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

  • Loading branch information...
1 parent f845b37 commit 3443a3be29338408ff1d06d8841744848dba9633 @gilesbowkett committed Oct 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/array.rb
View
@@ -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|

0 comments on commit 3443a3b

Please sign in to comment.