slice

fun IntArray.slice(indices: Iterable<Int>): List<Int>