reactive-banana icon indicating copy to clipboard operation
reactive-banana copied to clipboard

'coincidence' combinator

Open mitchellwrosen opened this issue 8 years ago • 6 comments
trafficstars

Here's another combinator in reflex missing that's from reactive-banana:

coincidence :: Event (Event a) -> Event a

mitchellwrosen avatar Sep 26 '17 02:09 mitchellwrosen

Isn't this switchE, but without the monad enforcing that we don't leak?

ocharles avatar Sep 26 '17 08:09 ocharles

A semantic specification would be nice, so that we know what exactly, if anything, to implement. 😄

HeinrichApfelmus avatar Sep 26 '17 12:09 HeinrichApfelmus

Whoops :)

The returned event emits whenever the outer and inner events emit simultaneously.

mitchellwrosen avatar Sep 26 '17 14:09 mitchellwrosen