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

Lazy Array iterator functions do not pass an index to the callback #45

Open
dstarke opened this issue Oct 18, 2013 · 0 comments
Open

Lazy Array iterator functions do not pass an index to the callback #45

dstarke opened this issue Oct 18, 2013 · 0 comments

Comments

@dstarke
Copy link
Contributor

dstarke commented Oct 18, 2013

The standard Array iterator functions like forEach() and map() take a callback function with the signature: function(element, index, array). The Lazy Array here takes a callback with the signature: function(element). I understand why the third argument doesn't necessarily make sense in this context, but it seems like the lazy array implementation should at least accept functions of the form: function(element, index).

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