select

fun select(start: Int, end: Int)(source)

selects the characters from start to end, the end excluded, with the caret at end