slice

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

Since Kotlin

1.1