Last active
June 27, 2016 17:25
-
-
Save ellismarte/da974bf1d94406bd6204077ef85959db to your computer and use it in GitHub Desktop.
This file contains 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
my_hash = {'a' => 1, 'b' => 1, 'c' => 2} | |
my_hash.values.map(&:uniq!) | |
values = my_hash.values.uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment