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

String arrays #109

Closed
DiermenSoftware opened this issue Jan 20, 2022 · 2 comments
Closed

String arrays #109

DiermenSoftware opened this issue Jan 20, 2022 · 2 comments

Comments

@DiermenSoftware
Copy link

Hi,

I really like this package, has tons of possibilities with a very good performance, however...
Currently arrays only work with numbers

Example:
eval("[5,6,7]")(1) = 6 < this already works
eval("["A","B","C"]")(1) = "B" < like this

Thanks!

@FlorianRappl
Copy link
Owner

Yeah the thing is that the notation is not an array, but a matrix (which is numerical).

I think to use an array you'll need to fall back to list, e.g., list("A", "B", "C") may be usable.

Unfortunately, I think this is not really documented. I'll keep it open as a documentation topic.

@DiermenSoftware
Copy link
Author

DiermenSoftware commented Jan 20, 2022

Didn't know the list yet. It works perfectly, thanks!

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

No branches or pull requests

2 participants