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

Store results #79

Open
holocronweaver opened this issue Aug 28, 2017 · 0 comments
Open

Store results #79

holocronweaver opened this issue Aug 28, 2017 · 0 comments

Comments

@holocronweaver
Copy link

holocronweaver commented Aug 28, 2017

AFAICT all the examples in the documentation send results to print. How can I save results?

For example, in Pythonect 0.6 interpreter using Python 2.7.12:

a = [1,2,3]
[2,3] -> sum(_!) -> [a = _] -> a
a -> print

Prints [1, 2, 3], not 5 as expected, implying the value of a in global scope was not changed.

Edit: It would be nice if 2 -> a would set a to 2, creating an intuitive input -> function -> output flow.

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