std.txt.lines

std.txt

lines(raw) -> lines

Split a string into an array of lines

Splits raw on \n and \r\n line endings and returns the pieces as an array. A trailing fragment that follows the last newline is included as a final element. A string with no newlines is returned as a single-element array. An empty or nil input returns {""}.