<https://stackoverflow.com/questions/66171704/is-t...
# announcements
m
Closest is
Copy code
listOf(1, 2, 3).filterIndexed { index, _ -> index != 1 }
s
Or
Copy code
listOf(1, 2, 3).toMutableList().removeAt(i)
d
I suppose
Copy code
fun <T> Iterable<T>.withoutItemAt2(index: Int): List<T> =
    this.toMutableList().apply {
        removeAt(index)
    }
But that potentially involves shuffling moving down lots of elements