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
New: CPArray -arrayByApplyingBlock: #2404
Conversation
Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue. |
Milestone: Someday. Labels: #needs-review, Foundation, feature. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on. |
It appears that Array.map is a lot slower than for loops. An example here : https://jsperf.com/map-vs-native-for-loop/7 As a consequence, I will remove the native map but I still believe cappuccino needs a map API because it is very common in most languages. |
I agree with -arrayByApplyingBlock: as the name. |
I agree, (Often we say +#needs-improvement |
Milestone: 0.9.9. Labels: #needs-improvement, #needs-review, Foundation, feature. What's next?
|
bf0f370
to
1363605
Compare
Test for CPArray -arrayByApplyingBlock:
1363605
to
08aa591
Compare
New: CPArray -arrayByApplyingBlock:
Merci! |
Merged, thanks for your input. |
This new method maps the receiver using the provided function.
Similar to javascript or swift map function.
There are tens of places in the fmw where using this method can reduce the amount of code.
With test.