1 min readOct 24, 2019
You can do that too, but without parenthesis it will work just fine too, if your param only have lambda it’s fine that way
If you want more detail examples you can visit this:
https://medium.com/@dbottillo/kotlin-by-examples-methods-and-lambdas-25aef7544365
it provides good example for the case