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

Fix #26488: don't map over values not provided #26521

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented Mar 19, 2018

This is a symptom of the good old how-to-allocate-a-result-array-of-an-arbitrary-transform-of-its-elements problem. Eventually it'd be nice to solve this with collect of a lazy implementation, but for now this papers over the egregious problem.

Edit: link to #26488. Silly GitHub.

This is a symptom of the good old how-to-allocate-a-result-array-of-an-arbitrary-transform-of-its-elements problem. Eventually it'd be nice to solve this with `collect` of a lazy implementation, but for now this papers over the egregious problem.
@mbauman mbauman added arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug labels Mar 19, 2018
Copy link
Member

@martinholters martinholters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not at familiar with the reduce machinery, but the change looks reasonable and does solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants