Coverage Summary for Class: RemoveKt (com.vsevolodganin.clicktrack.utils.collection.immutable)
Class | Class, % | Method, % | Branch, % | Line, % | Instruction, % |
---|---|---|---|---|---|
RemoveKt | 0% (0/1) | 0% (0/1) | 0% (0/6) | 0% (0/4) | 0% (0/29) |
package com.vsevolodganin.clicktrack.utils.collection.immutable
fun <T> List<T>.remove(index: Int): List<T> {
if (index !in indices) return this
return toMutableList().apply {
removeAt(index)
}
}