unlines package:streams

The unlines function is an inverse operation to lines. It joins lines, after appending a terminating newline to each.