Skip to content

Instantly share code, notes, and snippets.

@take
Created November 15, 2012 14:38
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 take/4078932 to your computer and use it in GitHub Desktop.
Save take/4078932 to your computer and use it in GitHub Desktop.
ruby-lang.org
# Ruby knows what you
# mean, even if you
# want to do math on
# an entire Array
cities = %w[ London
Oslo
Paris
Amsterdam
Berlin ]
visited = %w[Berlin Oslo]
puts "I still need " +
"to visit the " +
"following cities:",
cities - visited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment