unlines package:rio

unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.
>>> unlines ["Hello", "World", "!"]
"Hello\nWorld\n!\n"
O(n) Joins lines, after appending a terminating newline to each.