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 for subscripting tables with ranges #50

Open
darrylabbate opened this issue Dec 12, 2022 · 0 comments
Open

Support for subscripting tables with ranges #50

darrylabbate opened this issue Dec 12, 2022 · 0 comments
Labels
experimental Purely experimental ideas (for now) feature New feature or request language Language features/requests
Milestone

Comments

@darrylabbate
Copy link
Member

darrylabbate commented Dec 12, 2022

E.g.

  • table[1..] creates a copy of table with keys >= 1.
  • table[..5] creates a copy of table with keys <= 5.

The returned values should be packed into a table with numeric keys starting from 0. E.g. table[2..4] should return new_table[0..2]

Unknown: should any non-numeric (string) keys also be copied over?

@darrylabbate darrylabbate added feature New feature or request language Language features/requests experimental Purely experimental ideas (for now) labels Dec 12, 2022
@darrylabbate darrylabbate added this to the Riff 0.5 milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Purely experimental ideas (for now) feature New feature or request language Language features/requests
Projects
Status: No status
Development

No branches or pull requests

1 participant