diff --git a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt index b56ee9bc28b..b28c5b56f15 100644 --- a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > Array.filterTo(result: C, predicat * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > Array.filterNotTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > Array.filterNotTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > Array.filterNotTo(result: L, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > Array?.filterNotNullTo(result: L) : L { +public inline fun > Array?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > Array.dropWhileTo(result: L, predicate: } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > Array.takeWhileTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > Array.takeWhileTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt index aeffc797788..b1138a60b41 100644 --- a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > BooleanArray.filterTo(result: C, pred * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > BooleanArray.filterNotTo(result: L, predicate: (Boolean) -> Boolean) : L { +public inline fun > BooleanArray.filterNotTo(result: C, predicate: (Boolean) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > BooleanArray.filterNotTo(result: L, predica * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > BooleanArray?.filterNotNullTo(result: L) : L { +public inline fun > BooleanArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > BooleanArray.dropWhileTo(result: L, predica } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > BooleanArray.takeWhileTo(result: L, predicate: (Boolean) -> Boolean) : L { +public inline fun > BooleanArray.takeWhileTo(result: C, predicate: (Boolean) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt index 1a86fbd6654..b1c71885dd3 100644 --- a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > ByteArray.filterTo(result: C, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > ByteArray.filterNotTo(result: L, predicate: (Byte) -> Boolean) : L { +public inline fun > ByteArray.filterNotTo(result: C, predicate: (Byte) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > ByteArray.filterNotTo(result: L, predicate: (B * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > ByteArray?.filterNotNullTo(result: L) : L { +public inline fun > ByteArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > ByteArray.dropWhileTo(result: L, predicate: (B } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > ByteArray.takeWhileTo(result: L, predicate: (Byte) -> Boolean) : L { +public inline fun > ByteArray.takeWhileTo(result: C, predicate: (Byte) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt index 5530fbe5838..0749372ec7b 100644 --- a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > CharArray.filterTo(result: C, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > CharArray.filterNotTo(result: L, predicate: (Char) -> Boolean) : L { +public inline fun > CharArray.filterNotTo(result: C, predicate: (Char) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > CharArray.filterNotTo(result: L, predicate: (C * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > CharArray?.filterNotNullTo(result: L) : L { +public inline fun > CharArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > CharArray.dropWhileTo(result: L, predicate: (C } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > CharArray.takeWhileTo(result: L, predicate: (Char) -> Boolean) : L { +public inline fun > CharArray.takeWhileTo(result: C, predicate: (Char) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt index ee7c9bd630a..4f6cdad514b 100644 --- a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > DoubleArray.filterTo(result: C, predic * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > DoubleArray.filterNotTo(result: L, predicate: (Double) -> Boolean) : L { +public inline fun > DoubleArray.filterNotTo(result: C, predicate: (Double) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > DoubleArray.filterNotTo(result: L, predicate * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > DoubleArray?.filterNotNullTo(result: L) : L { +public inline fun > DoubleArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > DoubleArray.dropWhileTo(result: L, predicate } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > DoubleArray.takeWhileTo(result: L, predicate: (Double) -> Boolean) : L { +public inline fun > DoubleArray.takeWhileTo(result: C, predicate: (Double) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt index a7ff1d03b6d..c19e57a0bfd 100644 --- a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > FloatArray.filterTo(result: C, predicat * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > FloatArray.filterNotTo(result: L, predicate: (Float) -> Boolean) : L { +public inline fun > FloatArray.filterNotTo(result: C, predicate: (Float) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > FloatArray.filterNotTo(result: L, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > FloatArray?.filterNotNullTo(result: L) : L { +public inline fun > FloatArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > FloatArray.dropWhileTo(result: L, predicate: } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > FloatArray.takeWhileTo(result: L, predicate: (Float) -> Boolean) : L { +public inline fun > FloatArray.takeWhileTo(result: C, predicate: (Float) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt index bfb4b65d3b0..4a6b9cd3dd2 100644 --- a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > IntArray.filterTo(result: C, predicate: ( * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > IntArray.filterNotTo(result: L, predicate: (Int) -> Boolean) : L { +public inline fun > IntArray.filterNotTo(result: C, predicate: (Int) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > IntArray.filterNotTo(result: L, predicate: (Int * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > IntArray?.filterNotNullTo(result: L) : L { +public inline fun > IntArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > IntArray.dropWhileTo(result: L, predicate: (Int } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > IntArray.takeWhileTo(result: L, predicate: (Int) -> Boolean) : L { +public inline fun > IntArray.takeWhileTo(result: C, predicate: (Int) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt index 2530c797bc2..8d100a05aeb 100644 --- a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt @@ -88,7 +88,7 @@ public inline fun > java.util.Iterator.filterTo(result * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > java.util.Iterator.filterNotTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > java.util.Iterator.filterNotTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -98,7 +98,7 @@ public inline fun > java.util.Iterator.filterNotTo(result: L * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > java.util.Iterator?.filterNotNullTo(result: L) : L { +public inline fun > java.util.Iterator?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -195,7 +195,7 @@ public inline fun > java.util.Iterator.dropWhileTo(result: L } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > java.util.Iterator.takeWhileTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > java.util.Iterator.takeWhileTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt index c7981e3e972..80f144b0fef 100644 --- a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > LongArray.filterTo(result: C, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > LongArray.filterNotTo(result: L, predicate: (Long) -> Boolean) : L { +public inline fun > LongArray.filterNotTo(result: C, predicate: (Long) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > LongArray.filterNotTo(result: L, predicate: (L * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > LongArray?.filterNotNullTo(result: L) : L { +public inline fun > LongArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > LongArray.dropWhileTo(result: L, predicate: (L } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > LongArray.takeWhileTo(result: L, predicate: (Long) -> Boolean) : L { +public inline fun > LongArray.takeWhileTo(result: C, predicate: (Long) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt index 6edc1aa6642..fb658f1ba0e 100644 --- a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > ShortArray.filterTo(result: C, predicat * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > ShortArray.filterNotTo(result: L, predicate: (Short) -> Boolean) : L { +public inline fun > ShortArray.filterNotTo(result: C, predicate: (Short) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > ShortArray.filterNotTo(result: L, predicate: * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > ShortArray?.filterNotNullTo(result: L) : L { +public inline fun > ShortArray?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > ShortArray.dropWhileTo(result: L, predicate: } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > ShortArray.takeWhileTo(result: L, predicate: (Short) -> Boolean) : L { +public inline fun > ShortArray.takeWhileTo(result: C, predicate: (Short) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/generated/StandardFromJLangIterables.kt b/libraries/stdlib/src/generated/StandardFromJLangIterables.kt index fdf63cb1cff..01c00e1df80 100644 --- a/libraries/stdlib/src/generated/StandardFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/StandardFromJLangIterables.kt @@ -90,7 +90,7 @@ public inline fun > Iterable.filterTo(result: C, predi * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > Iterable.filterNotTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > Iterable.filterNotTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -100,7 +100,7 @@ public inline fun > Iterable.filterNotTo(result: L, predicat * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > Iterable?.filterNotNullTo(result: L) : L { +public inline fun > Iterable?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -197,7 +197,7 @@ public inline fun > Iterable.dropWhileTo(result: L, predicat } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > Iterable.takeWhileTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > Iterable.takeWhileTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result } diff --git a/libraries/stdlib/src/kotlin/JLangIterables.kt b/libraries/stdlib/src/kotlin/JLangIterables.kt index 647e6926151..24d8c8e7f2e 100644 --- a/libraries/stdlib/src/kotlin/JLangIterables.kt +++ b/libraries/stdlib/src/kotlin/JLangIterables.kt @@ -80,7 +80,7 @@ public inline fun > java.lang.Iterable.filterTo(result * * @includeFunctionBody ../../test/CollectionTest.kt filterNotIntoLinkedList */ -public inline fun > java.lang.Iterable.filterNotTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > java.lang.Iterable.filterNotTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (!predicate(element)) result.add(element) return result } @@ -90,7 +90,7 @@ public inline fun > java.lang.Iterable.filterNotTo(result: L * * @includeFunctionBody ../../test/CollectionTest.kt filterNotNullIntoLinkedList */ -public inline fun > java.lang.Iterable?.filterNotNullTo(result: L) : L { +public inline fun > java.lang.Iterable?.filterNotNullTo(result: C) : C { if (this != null) { for (element in this) if (element != null) result.add(element) } @@ -187,7 +187,7 @@ public inline fun > java.lang.Iterable.dropWhileTo(result: L } /** Returns a list containing the first elements that satisfy the given *predicate* */ -public inline fun > java.lang.Iterable.takeWhileTo(result: L, predicate: (T) -> Boolean) : L { +public inline fun > java.lang.Iterable.takeWhileTo(result: C, predicate: (T) -> Boolean) : C { for (element in this) if (predicate(element)) result.add(element) else break return result }