BoxSetIsSubsetOf
Test whether every element of set A is also contained in set B, i.e.
A \u2286 B. An empty set is always a subset of any set. Returns true if A is a subset of B, false otherwise.
Method Signature
BoxSetIsSubsetOf(set=[set], otherSet=[any])Arguments
Argument
Type
Required
Description
Default
set
set
true
The candidate subset (A).
otherSet
any
true
The candidate superset (B). Accepts any value castable to a Set.
Examples
Check that every element of this Set is contained in another
a = setOf( 1, 2 );
b = setOf( 1, 2, 3 );
writeOutput( a.isSubsetOf( b ) );
Result: true
Returns false when the Set has elements not in the other
Result: false
A Set is a subset of itself
Result: true
Related
Last updated
Was this helpful?
