ints.filter { it > 0 } // this literal is of type '(it: Int) -> Boolean' // same thing with full lambda expression ints.filter { num -> num >0 }
ints.filter { it > 0 } // this literal is of type '(it: Int) -> Boolean' // same thing with full lambda expression ints.filter { num -> num >0 }