-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Added correct indexing for negative steps and check for 0-index #263
Conversation
Thanks for fixing this. I'm finding the |
Do you think there is a way to fix all of these at once? Ie. |
|
What's the status of this PR? That code in the comments looks much better but there are still some unhandled cases I think e.g. |
I'm planning to release Mathics 0.9 in the next couple of weeks. Would love to get these changes merged in if possible. @wolfv are you planning to finish this? |
closed in favour of #325 |
This fixes stuff like
a = {1,2,3,4,5}
a[[3;;1;;-1]] == {3,2,1}
which previously resulted in {2}.
This should fix #196