slice

fun slice(begin: Int, end: Int = definedExternally): ArrayBuffer(source)

Since Kotlin

1.1
fun slice(begin: Int, end: Int = definedExternally): ArrayBuffer(source)

Since Kotlin

1.8