-
Notifications
You must be signed in to change notification settings - Fork 70
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
'coincidence' combinator #161
Labels
Comments
Isn't this |
A semantic specification would be nice, so that we know what exactly, if anything, to implement. 😄 |
Whoops :) The returned event emits whenever the outer and inner events emit simultaneously. |
The semantics are type Event a = [Maybe a] -- infinite
coincidence :: Event (Event a) -> Event a
coincidence (x0 : xs) =
case x0 of
Just (Just x : _) -> Just x : ys
_ -> Nothing : ys
where
ys = coincidence (map (drop 1) xs) |
Presumably |
Yeah, whoops! Editing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's another combinator in
reflex
missing that's fromreactive-banana
:The text was updated successfully, but these errors were encountered: