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

Array.apply is limited to small arrays #28

Closed
0joshuaolson1 opened this issue Mar 3, 2018 · 1 comment
Closed

Array.apply is limited to small arrays #28

0joshuaolson1 opened this issue Mar 3, 2018 · 1 comment

Comments

@0joshuaolson1
Copy link
Owner

0joshuaolson1 commented Mar 3, 2018

Functional is not first class - thanks, unoptimized call stack implementation detail leakage. Instead:

function P(l){var a = Array(l); loop(0, l-1, function(l){a[l] = l;}); return a;}

, or equally

function P(l){for(var a = Array(l); a[--l] = l;); return a;}
@0joshuaolson1 0joshuaolson1 changed the title Array.apply limited to small arrays Array.apply is limited to small arrays Mar 3, 2018
@0joshuaolson1
Copy link
Owner Author

npm publish'd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant