join

fun join(separator: String = definedExternally): String(source)

Adds all the elements of an array separated by the specified separator string.

Parameters

separator

A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.