Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in simplification of String.words and String.lines #300

Closed
w0rm opened this issue Mar 30, 2024 · 0 comments · Fixed by #302
Closed

Bug in simplification of String.words and String.lines #300

w0rm opened this issue Mar 30, 2024 · 0 comments · Fixed by #302
Assignees
Labels
bug Something isn't working

Comments

@w0rm
Copy link

w0rm commented Mar 30, 2024

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
@w0rm w0rm changed the title Bug in simplification of String.words "" Bug in simplification of String.words and String.lines Mar 30, 2024
@lue-bird lue-bird self-assigned this Mar 30, 2024
@lue-bird lue-bird added the bug Something isn't working label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants