-
Notifications
You must be signed in to change notification settings - Fork 46
Implement higher order function Zip #152
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
Comments
Yeah you're right. I think you could implement zip with |
Could elaborate more on this? Which reducing function for foldp do you have in mind? |
To my surprise
This even works when the calculation for either |
Yes. The single push causes the update to flow through the Signal graph just once, i.e. Reactive aims to re-run a minimal set of functions when a Signal is pushed to. Had a little play and here is a first stab at a zip
Works for the following, tested in IJulia (with
|
In #34 you say that
zip
is redundant tolift(tuple, x, y, z)
However
lift
is deprecated in favor ofmap
: https://github.com/JuliaGizmos/Reactive.jl/blob/master/src/deprecation.jl#L6But doesn't
map
"fire" each time there is new value in either of the two signals, that are to be combined?On the other hand
zip
"fires" only when both signals are changed: http://rxmarbles.com/#zipThe text was updated successfully, but these errors were encountered: