Kotlin Converti elementi in stringhe e concatenali, separati da virgole


Esempio

// Java:
String joined = things.stream()
                       .map(Object::toString)
                       .collect(Collectors.joining(", "));
// Kotlin:
val joined = things.joinToString() // ", " is used as separator, by default