Support numeric range syntax for indices #51
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/mpath#51
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Indices in output selectors and in future parenthesis #5, brace #5, dot-numeric indexing #2 at minimum should support comma-delimited list of numbers and a colon syntax
:.This issue proposes extending the functionality across these to include range syntax where start, stop, and optionally step are provided:
start : stop,start : step : stop. This should include both ascending (positive step) and descending (negative step).This issue also proposes allowing for concatenation with additional indices. For example:
1:5, 8. It is unclear whether commaless should be supported.Rendering should also include colon syntax rather than the full comma-delimited list of indices.
arrayToColonsBracketswas made available in commit7f963b6but has since been removed. This or something inspired by this can be reintroduced when this issue is being addressed.endand expressions in numeric indices #52