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

BoxSetIsEmpty

Test whether a Set contains no elements.

Returns true for an empty Set, false if it has one or more elements.

Method Signature

BoxSetIsEmpty(set=[set])

Arguments

Argument
Type
Required
Description
Default

set

set

true

The set to test.

Examples

Check whether a Set has no elements

s = setNew();
writeOutput( s.isEmpty() );

Result: true

isEmpty returns false for a non-empty Set

s = setOf( 1, 2 );
writeOutput( s.isEmpty() );

Result: false

Combined with clear

Result: false,true

Last updated

Was this helpful?