appendToStringBuilder

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

Appends all elements of this list to the given sb by calling append and separates the elements with the given separator.


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

Appends all elements of this list to the given sb 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>.appendToStringBuilder(sb: StringBuilder, separator: String, append: (it: T) -> Unit)(source)

Appends all elements of this List to the given sb by calling append and separates the elements with the given separator.


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

Appends all elements of this List to the given sb 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>.appendToStringBuilder(sb: StringBuilder, separator: String, append: (it: T) -> Unit)(source)

Appends all elements of this Iterable to the given sb by calling append and separates the elements with the given separator.


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

Appends all elements of this Sequence to the given sb by calling append and separates the elements with the given separator.