Marc Knaup
02/12/2021, 12:22 PMlistOf(1, 2, 3).filterIndexed { index, _ -> index != 1 }
spand
02/12/2021, 1:12 PMlistOf(1, 2, 3).toMutableList().removeAt(i)
dmcg
02/12/2021, 1:58 PMfun <T> Iterable<T>.withoutItemAt2(index: Int): List<T> =
this.toMutableList().apply {
removeAt(index)
}
dmcg
02/12/2021, 1:59 PM