109f7992b4
#KT-2934 Fixed
46 lines
524 B
Kotlin
46 lines
524 B
Kotlin
import java.util.ArrayList
|
|
|
|
fun test() {
|
|
val abc = ArrayList<Int>()
|
|
.map {
|
|
it * 2
|
|
}
|
|
.filter {
|
|
it > 4
|
|
}
|
|
}
|
|
|
|
fun test1() {
|
|
val abc = ArrayList<Int>()
|
|
.map({
|
|
it * 2
|
|
})
|
|
.filter({
|
|
it > 4
|
|
})
|
|
}
|
|
|
|
fun test2() {
|
|
val abc = ArrayList<Int>()
|
|
.map {
|
|
it * 2
|
|
}
|
|
}
|
|
|
|
fun test3() {
|
|
val abc = ArrayList<Int>().map {
|
|
it * 2
|
|
}
|
|
}
|
|
|
|
fun testWithComments() {
|
|
val abc = ArrayList<Int>()
|
|
// .map {
|
|
// it * 2
|
|
// }
|
|
.filter {
|
|
it > 4
|
|
}
|
|
}
|
|
|