Checking if one array is a subset of another
Posted by Luis Majano
Apr 28, 2010 11:13:27 UTC
This is more of a reminder than anything else. A co-worker needed to figure out if one array was contained as a subset of another and of course we go back to our good 'ol friend java for this and the collections interface:
isSubset = arrayA.containsAll( arrayB )
Simple and easy! Here are the Java API Docs just in case you want to read some more!
Tags: ColdFusion, Java