Skip to content
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

Creating a derived node out of a cursor exposes the next value instead of the current one #77

Open
arximboldi opened this issue Oct 1, 2020 · 0 comments
Labels

Comments

@arximboldi
Copy link
Owner

arximboldi commented Oct 1, 2020

I think this is an example of this behavior:

auto x = state<int>(0);
x.set(42);
auto y = x.xform(zug::map([](auto x) { return x; }));
assert(y.get() == 0); // fails, returns 42
commit(x);
assert(y.get() == 42); // now is when this should be true
@arximboldi arximboldi added the bug label Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant