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

Function-call slice syntax #128

Open
marcelocantos opened this issue Apr 16, 2020 · 0 comments
Open

Function-call slice syntax #128

marcelocantos opened this issue Apr 16, 2020 · 0 comments
Assignees
Labels
enhancement P1 Medium priority issue

Comments

@marcelocantos
Copy link
Contributor

marcelocantos commented Apr 16, 2020

Python's [] operator supports slicing: a[start:stop:step].

Add the same capability to arr.ai. Since arr.ai treats arrays as functions, a(index), slicing support must be added to function-call syntax: a(start..<stop:step). It should work for all function-like objects: functions, arrays, dicts, strings and byte arrays.

@nofun97 nofun97 self-assigned this Apr 16, 2020
@ChloePlanet ChloePlanet added the P0 High priority issue label Apr 19, 2020
nofun97 added a commit to nofun97/arrai that referenced this issue Apr 21, 2020
nofun97 added a commit to nofun97/arrai that referenced this issue Apr 21, 2020
nofun97 added a commit to nofun97/arrai that referenced this issue Apr 21, 2020
nofun97 added a commit to nofun97/arrai that referenced this issue Apr 21, 2020
nofun97 added a commit to nofun97/arrai that referenced this issue Apr 21, 2020
@marcelocantos marcelocantos added P1 Medium priority issue and removed P0 High priority issue labels Jun 1, 2020
anzopensource pushed a commit that referenced this issue Feb 18, 2021
This appears to be a bug in frozen, or something in arr.ai that is incorrectly inserting nil into the underlying set. This fixes an observed panic, but there is probably some other underlying issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement P1 Medium priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants