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
Ellipsis range notation #702
Comments
Attachment: ellipsis_iterator.diff.gz Attachment: ellipsis_iterator2.diff.gz |
comment:1
The above patches are one such proposal. NOTE: it has not been decided whether or not to include this feature. However, I like it.
And a non-trivial example
|
Attachment: ellipsis_iterator3.diff.gz |
comment:2
Fixed:
|
Attachment: ellipsis_iterator4.diff.gz |
comment:3
Fixed an issue with double quotes, and now this works as well
|
comment:4
Attachment: ellipsis_iterator1-4.hg.gz Applied. (And I fixed a few bugs.) |
comment:5
[1,2,..,-10] should return the empty list. |
Attachment: ellipsis-empty-range.hg.gz |
comment:6
Fixed.
|
comment:7
Why doesn't [10..1] return [10,9,8,7,6,5,4,3,2,1]? |
comment:8
I don't think this should be an error:
i.e., the universe stuff should take into account the step if given. |
comment:9
Fixed now by Robert... |
There have been proposal to add syntax to SAGE similar to magma/mathmatica/etc 1..n for ranges. See the mailing list for much discusssion.
Component: user interface
Issue created by migration from https://trac.sagemath.org/ticket/702
The text was updated successfully, but these errors were encountered: