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

Support array slicing notation #101

Closed
mikedanese opened this issue Feb 6, 2016 · 1 comment
Closed

Support array slicing notation #101

mikedanese opened this issue Feb 6, 2016 · 1 comment

Comments

@mikedanese
Copy link
Contributor

It would be very useful to support python style array slicing:

arr[start:end:stride]

I think this can be performed by desugaring to makeArray

@mikedanese
Copy link
Contributor Author

I added parsing support here:

26bb52e

I'm deciding whether this should be implemented in the vm or desugarring

sbarzowski pushed a commit to sbarzowski/jsonnet that referenced this issue Jun 10, 2024
* Add facility to dump part of Go heap as Go code.

* Generate stdlib AST as Go code

* Use hardcoded stdlib AST instead of parsing it
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