diff --git a/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt b/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt index 8fa739a3f2a..9ec6fbe9f18 100644 --- a/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt +++ b/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt @@ -260,29 +260,35 @@ public fun MutableCollection.retainAll(elements: Iterable): Boolean /** * Retains only elements of this [MutableCollection] that are contained in the given [elements] array. */ +@Fixme public fun MutableCollection.retainAll(elements: Array): Boolean { - if (elements.isNotEmpty()) - return retainAll(elements.toHashSet()) - else - return retainNothing() + TODO() + //if (elements.isNotEmpty()) + // return retainAll(elements.toHashSet()) + //else + // return retainNothing() } /** * Retains only elements of this [MutableCollection] that are contained in the given [elements] sequence. */ +@Fixme public fun MutableCollection.retainAll(elements: Sequence): Boolean { - val set = elements.toHashSet() - if (set.isNotEmpty()) - return retainAll(set) - else - return retainNothing() + TODO() + //val set = elements.toHashSet() + //if (set.isNotEmpty()) + // return retainAll(set) + //else + // return retainNothing() } +@Fixme private fun MutableCollection<*>.retainNothing(): Boolean { - val result = isNotEmpty() - clear() - return result -} */ + TODO() + //val result = isNotEmpty() + //clear() + //return result +} /** * Sorts elements in the list in-place according to their natural sort order. @@ -296,8 +302,6 @@ public fun > MutableList.sort(): Unit { /** * Sorts elements in the list in-place according to the order specified with [comparator]. */ -@Fixme -public fun MutableList.sortWith(comparator: Comparator): Unit { - TODO() - //if (size > 1) java.util.Collections.sort(this, comparator) -} +//public fun MutableList.sortWith(comparator: Comparator): Unit { +//if (size > 1) java.util.Collections.sort(this, comparator) +//}