For the complete documentation index, see llms.txt. This page is also available as Markdown.

BoxSetIsSupersetOf

Test whether every element of set B is also contained in set A, i.e.

A \u2287 B. A set is always a superset of the empty set. Returns true if A is a superset of B, false otherwise.

Method Signature

BoxSetIsSupersetOf(set=[set], otherSet=[any])

Arguments

Argument
Type
Required
Description
Default

set

set

true

The candidate superset (A).

otherSet

any

true

The candidate subset (B). Accepts any value castable to a Set.

Examples

Check that this Set contains all elements of another

The inverse of isSubsetOf.

a = setOf( 1, 2, 3 );
b = setOf( 1, 2 );
writeOutput( a.isSupersetOf( b ) );

Result: true

Returns false when the other Set has extra elements

Result: false

Last updated

Was this helpful?