Figure out a much better API for dedupe_map
Opened this issue · 0 comments
Pauan commented
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:
- Whether the old value is equal to the new value or not.
- What the new output value should be.
- What the old stored value should be.