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 upMake "list" from the Random library use loops #185
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
jvoigtlaender
Jul 8, 2016
Contributor
In the current version of core, Random.list is implemented in tail recursive fashion. And the current compiler version optimizes tail recursion. So this should not be an issue anymore.
|
In the current version of |
jvoigtlaender
closed this
Jul 8, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TheSeamau5 commentedMar 2, 2015
I opened an issue on elm-random-extra: TheSeamau5/elm-random-extra#1
where I spotted that I'm unable to generate lists larger that 3999 elements long (at least on my computer: macbook pro from 2011).
This is due to how
listis implemented. It's a recursive definition. This issue goes towards the larger goal of solving tail recursion in Elm, but I wanted to point out this example as I have found it.