Skip to content

Store results #79

@holocronweaver

Description

@holocronweaver

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions