GroupMap: add fold_with (2) more generic init#785
Conversation
This is a generalization of `fold` which takes a function rather than a value, which removes the need for a `Clone` bound. `fold` is implemented in terms of `fold_with`.
ba468b7 to
4396c74
Compare
|
It seems a bit strange to accept the value since init is only called for the first key-value pair in a group. The value that the closure will be called with is not guaranteed to be deterministic AFAIK. |
|
@tamird I agree it's weird to add the @phimuemue Can't you approve them yourself? In the "Files changed" page: click "Review changes" button, check "Approve" box, valid by clicking "Submit review" button. That's what I would do. I'd like to know where you are blocked if you are. |
|
@Philippe-Cholet I already tried this. "Approve" is disabled (seems I cannot review my own PRs). |
The whole function is niche - and as such I'd make it as generic as possible (as long as it does not incur runtime overhead). |
|
@phimuemue I previously successfully merged two PRs (by approving) that I did not create but where I committed to. I guess the key point is that you created the PR. |
Hi, this completes #778
@Philippe-Cholet Could you please approve this? Apparently I cannot simply push anymore to the repo.
@jswrenn I ran into this problem twice now. Am I doing something wrong? Is there a way to allow fixups like this for maintainers?