import java.util.ArrayList fun test() { val abc = ArrayList() .map { it * 2 } .filter { it > 4 } } fun test1() { val abc = ArrayList() .map({ it * 2 }) .filter({ it > 4 }) } fun test2() { val abc = ArrayList() .map { it * 2 } } fun test3() { val abc = ArrayList().map { it * 2 } } fun testWithComments() { val abc = ArrayList() // .map { // it * 2 // } .filter { it > 4 } }