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

BoxSetToList

Join the elements of a Set into a delimited string.

Each element is cast to a String before joining. For LINKED Sets the insertion order is preserved; for SORTED Sets the natural ordering applies; for default hash Sets the order is undefined.

Method Signature

BoxSetToList(set=[set], delimiter=[string])

Arguments

Argument
Type
Required
Description
Default

set

set

true

The set whose elements should be joined.

delimiter

string

false

The delimiter to place between elements. Defaults to {@code ","}.

,

Examples

Convert a Set to a comma-delimited list

s = setNew( type="linked", values=[ "a", "b", "c" ] );
writeOutput( s.toList() );

Result: a,b,c

Using a custom delimiter

Result: a-b-c

Last updated

Was this helpful?