klyn.StringBuilderSync.insert
method

    public insert(position as UInt, char as Char) as StringBuilderSync throws IndexException:

Description

Inserts one character.

Parameters

- position Insertion position between 0 and length.
- char Character to insert.

Returns

This builder.

Throws

- IndexException if position is outside [0, length].

Example

    builder = StringBuilderSync()
    builder.append("Kyn")
    builder.insert(2u, 'l')
    print(builder.toString())