BoxSetIsDisjointFrom
Test whether two Sets share no common elements, i.e.
their intersection is empty. Returns true if the two Sets are disjoint, false if they have at least one element in common.
Method Signature
BoxSetIsDisjointFrom(set=[set], otherSet=[any])Arguments
Argument
Type
Required
Description
Default
set
set
true
The first set.
otherSet
any
true
The second set to compare against. Accepts any value castable to a Set.
Examples
Check that two Sets share no elements
Returns true when the two Sets have an empty intersection.
a = setOf( 1, 2 );
c = setOf( 9, 10 );
writeOutput( a.isDisjointFrom( c ) );
Result: true
Returns false when Sets overlap
Result: false
Related
Last updated
Was this helpful?
