slice

Returns a char sequence containing characters of the original char sequence at the specified range of indices.

Since Kotlin

1.2

Returns a string containing characters of the original string at the specified range of indices.

Since Kotlin

1.2

Returns a char sequence containing characters of the original char sequence at specified indices.

Since Kotlin

1.2

inline fun String.slice(indices: Iterable<Int>): String(source)

Returns a string containing characters of the original string at specified indices.

Since Kotlin

1.2