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

StringBuilderPrepend

Inserts the string representation of value at the beginning (position 1) of the buffer.

Method Signature

StringBuilderPrepend(stringBuilder=[stringBuilder], value=[any])

Arguments

Argument
Type
Required
Description
Default

stringBuilder

stringBuilder

true

The StringBuilder to prepend to.

value

any

true

The value to insert at the start. Coerced to string.

Examples

Prepend text with stringBuilderPrepend()

Adds text to the beginning of a StringBuilder and returns the same instance.

sb = sb{'World'};
stringBuilderPrepend( sb, 'Hello ' );
writeOutput( sb.toString() );

Result: Hello World

Member usage

Result: Hello World

Last updated

Was this helpful?