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

Figure out a much better API for dedupe_map #73

Open
Pauan opened this issue Sep 8, 2023 · 0 comments
Open

Figure out a much better API for dedupe_map #73

Pauan opened this issue Sep 8, 2023 · 0 comments
Assignees
Milestone

Comments

@Pauan
Copy link
Owner

Pauan commented Sep 8, 2023

Right now this is the dedupe_map API:

signal.dedupe_map(move |new_value: &mut A| -> B {
    *new_value
})

But the user should be able to determine three things:

  1. Whether the old value is equal to the new value or not.
  2. What the new output value should be.
  3. What the old stored value should be.
@Pauan Pauan added this to the 0.4 milestone Sep 8, 2023
@Pauan Pauan self-assigned this Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant