Kotlin HashSet joinToString()
Syntax & Examples


Syntax of HashSet.joinToString()

The syntax of HashSet.joinToString() extension function is:

fun <T> Iterable<T>.joinToString( separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: ((T) -> CharSequence)? = null ): String

This joinToString() extension function of HashSet creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.