Use it in lambda expression
Hi,
I wrote following lambda expression
val positive:(Int)-> Boolean={x:Int -> x >0}
It works
then
val positive:(Int)-> Boolean={it >0}
it works too
but why
this gives error ERROR Unresolved reference: it
val positive={it >0}
1 post - 1 participant
Read full topic