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.repeat causes a runtime error #175
Comments
mgold
referenced this issue
Jun 3, 2015
Merged
Fix runtime error creating arrays of negative length #258
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
@TheSeamau5 I think you can close this now. |
TheSeamau5
closed this
Jun 26, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
sindikat
Aug 26, 2015
This issue still exists in Elm 0.15.1, just paste this in http://elm-lang.org/try :
import Array
import Graphics.Element exposing (show)
main = show <| Array.repeat (-5) 0
sindikat
commented
Aug 26, 2015
|
This issue still exists in Elm 0.15.1, just paste this in http://elm-lang.org/try :
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
mgold
Aug 26, 2015
Contributor
The patch was merged after the latest version of core was released. You'll have to wait for 0.16, sorry.
|
The patch was merged after the latest version of core was released. You'll have to wait for 0.16, sorry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TheSeamau5 commentedFeb 16, 2015
Calling
Array.repeatwith a negative size causes a runtime error.This is the code that has caused this:
This behavior is not the same as the behavior with lists as calling
List.repeatwith a negative size yields the empty list.