Skip to content

Conversation

@mbauman
Copy link
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
@mbauman mbauman requested a review from martinholters March 19, 2018 17:02
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.

4 participants