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
Related
Last updated
Was this helpful?
