Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upArray.append mutates first argument #691
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Aug 15, 2016
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Aug 15, 2016
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Referencing #649 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Aug 29, 2016
Member
I added this to #649, track there. Also, there is progress on a mostly Elm implementation that should fix a lot of these issues!
|
I added this to #649, track there. Also, there is progress on a mostly Elm implementation that should fix a lot of these issues! |
evancz
closed this
Aug 29, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
eike
Jun 10, 2017
Since this problem still exists in Elm 0.18 (try
import Array
import Html exposing (..)
a = Array.fromList ["foo"]
b = Array.fromList ["bar"]
c = Array.append a b
main = div []
[ text (toString a)
, text (toString b)
, text (toString c)
]
on elm-lang.org/try, for example), I think it would be a good idea to mention so in the documentation of Array.
eike
commented
Jun 10, 2017
•
|
Since this problem still exists in Elm 0.18 (try
on elm-lang.org/try, for example), I think it would be a good idea to mention so in the documentation of Array. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ronanyeah
Dec 5, 2017
I think it would be a good idea to mention so in the documentation of Array.
Or at least this comment should be clarified.
ronanyeah
commented
Dec 5, 2017
Or at least this comment should be clarified. |
AdamLuotonen commentedAug 15, 2016
Hi!
I think there is a problem with Array.append, as it mutates the first array parameter sent to it. To reproduce, run the following in elm-repl:
a should still be [1,2,3] here? I'm running Elm 0.17.1 on Windows.