klyn.StringBuilderSync.insert
method
public insert(position as UInt, value as String) as StringBuilderSync throws IndexException:
Description

Inserts a string at a given position.

Parameters
  • position Insertion position between 0 and length.
  • value String to insert.
Returns

This builder.

Throws
  • IndexException if position is outside [0, length].
Example
builder = StringBuilderSync()
builder.append("Klyn")
builder.insert(0u, "Hello ")
print(builder.toString())