insert

fun String.insert(index: Int, otherString: String): String

It inserts the given otherString into this string at the specified index.

Return

a new string with the otherString inserted into this.

Throws

Sources

Link copied to clipboard