deleteAt

Removes the character at the specified index from this string builder and returns this instance.

@IgnorableReturnValueexpect fun StringBuilder.deleteAt(index: Int): StringBuilder(source)

fun main() { val sb = StringBuilder("Hello World") sb.deleteAt(5) println(sb) // Output: HelloWorld }

Source