lines


Description:

public static string[] lines (string? s)

Split the string by newlines and return as an array.

Example:

    string[] result = Strings.lines ("a\nb\nc");
assert (result.length == 3);

Parameters:

s

the string.

Returns:

array of lines.