Reputation: 165
What does it change between these two calls? I tried and they have the same behaviour
unsortedInputValues.joinToString(","){it}
unsortedInputValues.joinToString(",")
Upvotes: 12
Views: 3801
Reputation: 63399
That's a "trailing lambda", a language feature inspired by Ruby's block syntax.
Upvotes: 11