diff --git a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt index 208cc5466e6..98530fe3979 100644 --- a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > Array.toCollection(resul * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun Array.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun Array.toCollection() : Collection = toCollection( /** Copies all elements into a [[Set]] */ public inline fun Array.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun Array.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun Array.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun Array.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun Array.toSortedList(transform: fun(T) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt index 61480034bcb..42940e7121d 100644 --- a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > BooleanArray.toCollection(resu * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun BooleanArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun BooleanArray.toCollection() : Collection = toCollect /** Copies all elements into a [[Set]] */ public inline fun BooleanArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun BooleanArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun BooleanArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun BooleanArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun BooleanArray.toSortedList(transform: fun(Boolean) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt index 174c0c2e2e2..0f5c3e94767 100644 --- a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > ByteArray.toCollection(result: C) * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun ByteArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun ByteArray.toCollection() : Collection = toCollection(Ar /** Copies all elements into a [[Set]] */ public inline fun ByteArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun ByteArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun ByteArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun ByteArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun ByteArray.toSortedList(transform: fun(Byte) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt index a4468972ec1..52cbf787bfc 100644 --- a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > CharArray.toCollection(result: C) * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun CharArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun CharArray.toCollection() : Collection = toCollection(Ar /** Copies all elements into a [[Set]] */ public inline fun CharArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun CharArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun CharArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun CharArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun CharArray.toSortedList(transform: fun(Char) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt index 9295d5d9179..7a4a7ef7ad9 100644 --- a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > DoubleArray.toCollection(result * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun DoubleArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun DoubleArray.toCollection() : Collection = toCollectio /** Copies all elements into a [[Set]] */ public inline fun DoubleArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun DoubleArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun DoubleArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun DoubleArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun DoubleArray.toSortedList(transform: fun(Double) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt index 59b74d2f33d..b0ab53517ae 100644 --- a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > FloatArray.toCollection(result: * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun FloatArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun FloatArray.toCollection() : Collection = toCollection( /** Copies all elements into a [[Set]] */ public inline fun FloatArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun FloatArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun FloatArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun FloatArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun FloatArray.toSortedList(transform: fun(Float) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt index 4b6315625ac..d134f8da827 100644 --- a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > IntArray.toCollection(result: C) : * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun IntArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun IntArray.toCollection() : Collection = toCollection(Arra /** Copies all elements into a [[Set]] */ public inline fun IntArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun IntArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun IntArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun IntArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun IntArray.toSortedList(transform: fun(Int) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt index 2c969bb9557..11d89a55c87 100644 --- a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt @@ -242,7 +242,7 @@ public inline fun > Iterator.toCollection(re * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun Iterator.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -259,15 +259,6 @@ public inline fun Iterator.toCollection() : Collection = toCollecti /** Copies all elements into a [[Set]] */ public inline fun Iterator.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun Iterator.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun Iterator.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun Iterator.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun Iterator.toSortedList(transform: fun(T) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt index b12972d933f..ef081a443b9 100644 --- a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > LongArray.toCollection(result: C) * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun LongArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun LongArray.toCollection() : Collection = toCollection(Ar /** Copies all elements into a [[Set]] */ public inline fun LongArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun LongArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun LongArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun LongArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun LongArray.toSortedList(transform: fun(Long) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt index 03a528165d3..94f78798805 100644 --- a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt @@ -243,7 +243,7 @@ public inline fun > ShortArray.toCollection(result: * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun ShortArray.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -260,15 +260,6 @@ public inline fun ShortArray.toCollection() : Collection = toCollection( /** Copies all elements into a [[Set]] */ public inline fun ShortArray.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun ShortArray.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun ShortArray.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun ShortArray.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun ShortArray.toSortedList(transform: fun(Short) : java.lang.Comparable<*>) : List { diff --git a/libraries/stdlib/src/kotlin/JLangIterables.kt b/libraries/stdlib/src/kotlin/JLangIterables.kt index d208f95f766..dbbed96f227 100644 --- a/libraries/stdlib/src/kotlin/JLangIterables.kt +++ b/libraries/stdlib/src/kotlin/JLangIterables.kt @@ -234,7 +234,7 @@ public inline fun > Iterable.toCollection(re * @includeFunctionBody ../../test/CollectionTest.kt reverse */ public inline fun Iterable.reverse() : List { - val list = toMutableList() + val list = toCollection(ArrayList()) Collections.reverse(list) return list } @@ -251,15 +251,6 @@ public inline fun Iterable.toCollection() : Collection = toCollecti /** Copies all elements into a [[Set]] */ public inline fun Iterable.toSet() : Set = toCollection(HashSet()) -/** Copies all elements into a [[MutableList]] */ -public inline fun Iterable.toMutableList() : MutableList = toCollection(ArrayList()) - -/** Copies all elements into a [[List] */ -public inline fun Iterable.toMutableCollection() : MutableCollection = toCollection(ArrayList()) - -/** Copies all elements into a [[Set]] */ -public inline fun Iterable.toMutableSet() : MutableSet = toCollection(HashSet()) - /** TODO figure out necessary variance/generics ninja stuff... :) public inline fun Iterable.toSortedList(transform: fun(T) : java.lang.Comparable<*>) : List {