rangeTo

fun <T> List<T>.rangeTo(toIndex: Int): List<T>
fun <T> List<T>.rangeTo(to: (T) -> Boolean): List<T>