Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created June 9, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/3ef3d612f356a64f76df to your computer and use it in GitHub Desktop.
Save mvidner/3ef3d612f356a64f76df to your computer and use it in GitHub Desktop.
ruby whitespace is significant
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