-
Notifications
You must be signed in to change notification settings - Fork 737
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
Conversation
}] call EFUNC(common,filter); | ||
} count units _x; | ||
(side _x == _playerSide) && _anyPlayers > 0 | ||
}; // @todo, simplify this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo
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? |
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. |
replace filter and map with select and apply
No description provided.