slice
fun CharSequence.slice(indices: IntRange): CharSequence
Returns a char sequence containing characters of the original char sequence at the specified range of indices.
fun String.slice(indices: IntRange): String
Returns a string containing characters of the original string at the specified range of indices.
fun CharSequence.slice(indices: Iterable<Int>): CharSequence
Returns a char sequence containing characters of the original char sequence at specified indices.