Last active
December 16, 2015 12:19
-
-
Save padde/5433922 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fruity' | |
| compare do | |
| rubylovely { | |
| a3 = [["a", "b"], ["a","c"], ["b","c"], ["b", "a"], ["c","b"],["b", "a"]] | |
| a3.each {|x| a3.delete(x.reverse) if a3.include? x.reverse} | |
| } | |
| padde { | |
| a3 = [["a", "b"], ["a","c"], ["b","c"], ["b", "a"], ["c","b"],["b", "a"]] | |
| a3.uniq!(&:sort!) | |
| } | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On my machine this produces