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

Figure out mapping & binding #1

Closed
supposedly opened this issue Apr 16, 2018 · 1 comment
Closed

Figure out mapping & binding #1

supposedly opened this issue Apr 16, 2018 · 1 comment

Comments

@supposedly
Copy link
Owner

supposedly commented Apr 16, 2018

N..E (1, 2, 3), [N: (3, 2, 1)]
# should produce
(1, 2, 3), (1, 2, 3), (1, 2, 3), [N: (3, 2, 1)]
# and then become
1, (1, 2, 3), (1, 2, 3), 3
2, (1, 2, 3), (1, 2, 3), 2
3, (1, 2, 3), (1, 2, 3), 1

and

N..E [(1, 2, 3)], [N: (3, 2, 1)]
# should produce
(1, 2, 3), [N], [N], [N: (3, 2, 1)]
# and then become
1, 1, 3
2, 2, 2
3, 3, 1

Currently I have it so that only the latter happens in both scenarios, which I don't think is right. The second stage is properly reached, but then after that the [N] bindings get expanded to their variables too soon, destroying the distinction (and I'm not sure how to fix it without reordering everything -- see the if v == ... listcomp lines)

@supposedly
Copy link
Owner Author

...apparently it does do this properly but I'm not sure how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant