https://kotlinlang.org logo
k

kirillrakhman

01/09/2017, 3:01 PM
not sure if this was also part of the question, but if your lambda has 0 or 1 parameters, you can leave you the arrow so
foo { -> }
and
foo {}
is the same as well as
foo { a -> a }
and
foo { it }