unlines package:text

O(n) Joins lines, after appending a terminating newline to each.