BoxSetContainsAll
Test whether a Set contains every element of a given collection.
The collection can be an Array, another Set, a list-delimited String, or any value castable to a Set. Returns true only if all elements are present.
Method Signature
BoxSetContainsAll(set=[set], values=[any])Arguments
Argument
Type
Required
Description
Default
set
set
true
The set to test.
values
any
true
The collection of values to check for. Accepts an Array, Set, list-delimited String, or any castable collection.
Examples
Check whether a Set contains all elements of a collection
Returns true only when every element of the argument collection is present in the Set.
s = [ 1, 2, 3, 4, 5 ].toSet();
writeOutput( s.containsAll( [ 2, 4 ] ) & "," & s.containsAll( [ 2, 9 ] ) );
Result: true,false
Related
Last updated
Was this helpful?
