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 upTypeError: array is undefined slicing an array at the end in current elm #900
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Aug 20, 2017
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 20, 2017
|
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.
Skinney
Aug 21, 2017
Contributor
It's been fixed in the next version of Elm. In the meantime, you can use Skinney/elm-array-exploration, which is the new array implementation available as a third-party library.
|
It's been fixed in the next version of Elm. In the meantime, you can use |
prozacchiwawa commentedAug 20, 2017
•
edited
Edited 1 time
-
prozacchiwawa
edited Aug 20, 2017 (most recent)
Although the previous issues with arrays have been closed, I see this error using recent elm (confirmed on ellie-app and elm-lang.org/try) when slicing zero elements from the end of an array.
https://ellie-app.com/45rwKnNgpwVa1/0
full example:
Throws:
TypeError: array is undefined
Stack Trace:
length http://elm-lang.org/compile:956:1
sliceLeft http://elm-lang.org/compile:634:10
slice http://elm-lang.org/compile:555:9
A3 http://elm-lang.org/compile:99:7
_user$project$Temp1503266268830868$main< http://elm-lang.org/compile:7800:5
http://elm-lang.org/compile:7795:2
Expected:
Array.fromList []