tests: apply official code style
#KT-38632 Fixed
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
val filterIndexedTo: MutableList<Int> = list.asSequence().filter { it > 1 }.filterIndexedTo(mutableListOf()) { index, it -> true }
|
||||
val filterIndexedTo: MutableList<Int> = list.asSequence().filter { it > 1 }
|
||||
.filterIndexedTo(mutableListOf()) { index, it -> true }
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
val mapIndexedNotNullTo: MutableList<Int> = list.asSequence().filter { it > 1 }.mapIndexedNotNullTo(mutableListOf()) { index, i -> i }
|
||||
val mapIndexedNotNullTo: MutableList<Int> = list.asSequence().filter { it > 1 }
|
||||
.mapIndexedNotNullTo(mutableListOf()) { index, i -> i }
|
||||
}
|
||||
Reference in New Issue
Block a user