delete

open fun delete(start: Int, end: Int): Text.Builder

Removes the characters in a substring of this sequence. The substring begins at the specified start and extends to the character at index end - 1 or to the end of the sequence if no such character exists. If start is equal to end, no changes are made.

Return

This object.

Parameters

start

The beginning index, inclusive.

end

The ending index, exclusive.

Throws

if start is negative, greater than length(), or greater than end.