klyn.StringBuilderSync.insert
method
public insert(position as UInt, char as Char) as StringBuilderSync throws IndexException:
Description
Inserts one character. builder = StringBuilderSync() builder.append("Kyn") builder.insert(2u, 'l') print(builder.toString())
Parameters
  • position Insertion position between 0 and length.
  • char Character to insert.
Returns
This builder.
Throws
  • IndexException if position is outside [0, length].
Example