toCsv

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

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

Extension function on Iterable. This is a display helper, not a CSV encoder: elements are not quoted or escaped, so an element containing a comma, quote, or newline is split differently by a CSV parser.

Return

a string with elements separated by ", "