joinToString

inline fun <T> Array<T>.joinToString(separator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this list by calling append and separates the elements with the given separator.


inline fun <T> Array<T>.joinToString(separator: String, lastSeparator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this list by calling append and separates the elements with the given separator whereas lastSeparator is used to separate the last and the second last element.


inline fun <T> List<T>.joinToString(separator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this List by calling append and separates the elements with the given separator.


inline fun <T> List<T>.joinToString(separator: String, lastSeparator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this List by calling append and separates the elements with the given separator whereas lastSeparator is used to separate the last and the second last element.


inline fun <T> Iterable<T>.joinToString(separator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this Iterable by calling append and separates the elements with the given separator.


inline fun <T> Sequence<T>.joinToString(separator: String, append: (it: T, sb: StringBuilder) -> Unit): String(source)

Joins all elements of this Sequence by calling append and separates the elements with the given separator.