Skip to content

Instantly share code, notes, and snippets.

@take

take/gist:4078932

Created Nov 15, 2012
Embed
What would you like to do?
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
You can’t perform that action at this time.