toCsv

fun <T> Iterable<T>.toCsv(): String

Joins the elements of this Iterable into a comma-separated string.

Extension function on Iterable.

Return

a string with elements separated by ", "