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

replace filter and map with select and apply #3276

Merged
merged 6 commits into from
Feb 18, 2016
Merged

replace filter and map with select and apply #3276

merged 6 commits into from
Feb 18, 2016

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Feb 6, 2016

No description provided.

@commy2 commy2 added status/WIP kind/cleanup Release Notes: **CHANGED:** 1.56 labels Feb 6, 2016
@commy2 commy2 self-assigned this Feb 6, 2016
@commy2 commy2 added this to the 3.5.0 milestone Feb 6, 2016
}] call EFUNC(common,filter);
} count units _x;
(side _x == _playerSide) && _anyPlayers > 0
}; // @todo, simplify this
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo

@commy2 commy2 removed the status/WIP label Feb 6, 2016
@VKing6
Copy link
Member

VKing6 commented Feb 7, 2016

Should we also add other implementations that could use select or apply to this PR or do you want to keep it for only where the functions are replaced?

@commy2
Copy link
Contributor Author

commy2 commented Feb 7, 2016

Feel free to add more of these to this PR. I was just replacing the obvious uses of the functions with it for now, but there are certainly more places (that currently use forEachIndex for example) that could benefit from these.

commy2 added a commit that referenced this pull request Feb 18, 2016
replace filter and map with select and apply
@commy2 commy2 merged commit be8f7f9 into master Feb 18, 2016
@commy2 commy2 deleted the 156selectapply branch February 18, 2016 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants