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

Is there any way to retrieve variables from Context? #99

Open
NatanFreeman opened this issue Sep 22, 2022 · 2 comments
Open

Is there any way to retrieve variables from Context? #99

NatanFreeman opened this issue Sep 22, 2022 · 2 comments

Comments

@NatanFreeman
Copy link

I would like to retrieve all user defined variables from a Context but this doesn't seem like it's currently possible. Being able to delete them would be useful too.

@PaddiM8
Copy link
Owner

PaddiM8 commented Sep 22, 2022

It is not currently possible, but would make sense to implement. Hmm... the symboltable of variables doesn't map variable names to numerical values, but to expressions. I'm trying to figure out what would make sense to return. I'm assuming your use-case involves using the actual numerical values connected with the variables?

@NatanFreeman
Copy link
Author

I would like to be able to retrieve an iterator of variable names along with their values. Being able to delete variables from this list would also be useful. The alternative is creating a new Context and repopulating it but this is less efficient.

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

2 participants