-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[9.x] Remove reduceWithKeys and merge the functionality with reduce #35901
Conversation
we don't have the method anymore so we're not testing it
@JosephSilber you didn't get pinged by GitHub yet because we haven't merged the CODEOWNER changes yet into master so pinging you manually here. |
@mokhosh there's a merge commit in this commit history. Can you rewrite the history so it's clean? |
Sure |
This was just done for 8.x, which is periodically merged with master. No need to do it here separately.
Should probably go in a separate PR.
We can't. Higher order proxies work by calling a method on each item, and returning its values. Since |
There's no diff there actually with the 8.x PR.
I think it's already merged in the 8.x PR, so should we just leave it? I'll keep this in mind for the future contributions.
You're right. Thanks. |
@driesvints I'm not sure why Can you please guide me through this? |
@mokhosh git checkout #edit vim CL view
pick `add foo`
s `merge commit to be removed`
pick testReduce` then, you can choose the commit message you fancy better for those changes. 👍🏻 |
@gocanto Thanks for your reply. The third command gave me this error:
|
|
@mokhosh I'd just check out a new branch and do the code changes anew as the current timeline is a bit messed up now. Then force push to your branch here. |
@driesvints Thank you, and sorry for the trouble. I'll be cleaner next time. |
This moves
reduce
out ofCollection
andLazyCollection
and puts it intoEnumeratesValues
as suggested by @JosephSilber.The existing test for
reduce
has be adapted to contain asserts for both situations, with and without$key
.I've also moved
tap
one method down to be alphabetically correct.@JosephSilber while I was checking the code in
EnumeratesValues
I got an idea. Can we makereduce
higher proxy-able as well? I don't know how to do that now, but I'm willing to do it if you give me a little guidance.