Home > OS >  Usage of curly brackets at the end of function call kotlin
Usage of curly brackets at the end of function call kotlin

Time:10-28

What does it change between these two calls? I tried and they have the same behaviour

unsortedInputValues.joinToString(","){it}

unsortedInputValues.joinToString(",")

CodePudding user response:

That's a "trailing lambda"

  • Related