join To Code
fun Collection<CodeBlock>.joinToCode(separator: CharSequence = ", ", prefix: CharSequence = "", suffix: CharSequence = ""): CodeBlock
Join each CodeBlock in this into a single CodeBlock using separator with an optional prefix and suffix.
fun <T> Collection<T>.joinToCode(separator: CharSequence = ", ", prefix: CharSequence = "", suffix: CharSequence = "", transform: (T) -> CodeBlock): CodeBlock
Apply transform to each element in this, then join into a single CodeBlock using separator with an optional prefix and suffix.