Created
February 3, 2011 19:31
-
-
Save ahoward/810015 to your computer and use it in GitHub Desktop.
this is a simple way to look for > 1 element array matches
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
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