Introduce Common protected function AbstractMutableList.removeRange #KT-57151
This commit is contained in:
committed by
Space Team
parent
f84fa29fef
commit
240a423bed
@@ -81,7 +81,7 @@ public actual abstract class AbstractMutableList<E> protected actual constructor
|
||||
/**
|
||||
* Removes the range of elements from this list starting from [fromIndex] and ending with but not including [toIndex].
|
||||
*/
|
||||
protected open fun removeRange(fromIndex: Int, toIndex: Int) {
|
||||
protected actual open fun removeRange(fromIndex: Int, toIndex: Int) {
|
||||
val iterator = listIterator(fromIndex)
|
||||
repeat(toIndex - fromIndex) {
|
||||
iterator.next()
|
||||
|
||||
Reference in New Issue
Block a user