String.words "" or String.lines "" actually return [""], not an empty list. It is not intuitive, but it is what it is 😄
elm repl
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl>
--------------------------------------------------------------------------------
> String.lines ""
[""] : List String
> String.words ""
[""] : List String
String.words ""
orString.lines ""
actually return[""]
, not an empty list. It is not intuitive, but it is what it is 😄