We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Reactive there's foldp which is useful for accumulating state over updates (https://juliagizmos.github.io/Reactive.jl/#maintaining-state). I found it pretty useful. Right now I accomplish this with:
foldp
u = Observable(0) oldu = Ref(u[]) p = Observable(0) map!(p, u) do newu s = oldu[] + newu oldu[] = newu p[] + s end
which seems a bit cumbersome considering what it could be:
p = foldp(+, u)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Reactive there's
foldp
which is useful for accumulating state over updates (https://juliagizmos.github.io/Reactive.jl/#maintaining-state). I found it pretty useful. Right now I accomplish this with:which seems a bit cumbersome considering what it could be:
The text was updated successfully, but these errors were encountered: