Extensions to gleam/string.
pub fn lines(value: String) -> List(String)
Returns the lines contained in the given string.
Supports both \n and \r\n line endings.
Examples
> lines("one\ntwo\n\nthree\n")
["one", "two", "three"]
> lines("one\r\ntwo\r\n\r\nthree\r\n")
["one", "two", "three"]