Created
June 9, 2015 09:39
-
-
Save mvidner/3ef3d612f356a64f76df to your computer and use it in GitHub Desktop.
ruby whitespace is significant
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
def upcase_all(strings) | |
strings.map(&:upcase) | |
end | |
puts upcase_all (["You", "can", "use", "YOU"]).uniq | |
puts upcase_all(["You", "can", "use", "YOU"]).uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment