lines package:universum

O(n) Breaks a Text up into a list of Texts at newline characters '\n' (LF, line feed). The resulting strings do not contain newlines. lines does not treat '\r' (CR, carriage return) as a newline character.
O(n) Joins lines, after appending a terminating newline to each.