Created
January 12, 2016 15:55
-
-
Save chuck0523/6d6ac5a0519764b1151c 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
array = [1, 3, 4, 3] | |
puts array.size # 4 | |
puts array.uniq # [1, 3, 4] | |
puts array.uniq.size # 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment