get

operator fun String.get(indices: Iterable<Int>): String

It simplifies the slicing of a string using the bracket notation.

Return

a string containing characters of the original string with the specified range of indices.

Parameters

indices

the range of indices to be used for slicing.


operator fun String.get(indices: IntRange): String