linesToString

fun linesToString(vararg lines: String): String

Converts a sequence of strings into a single string, separated by new lines.

Example (REPL) usage:

>>> println(linesToString("a", "b", "c"))
a
b
c

Return

new-line-separated version of input

Parameters

lines

sequence of lines to join


Converts a sequence of strings into a single string, separated by new lines.

Example (REPL) usage:

>>> println(linesToString(listOf("a", "b", "c")))
a
b
c

Return

new-line-separated version of input

Parameters

lines

sequence of lines to join