Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created February 3, 2011 19:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoward/810015 to your computer and use it in GitHub Desktop.
Save ahoward/810015 to your computer and use it in GitHub Desktop.
this is a simple way to look for > 1 element array matches
candidate = %w( c b a )
target = %w( a b )
found! if(target & candidate == target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment