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

Implement Index<Range<…>> for OpStack #322

Open
jan-ferdinand opened this issue Aug 30, 2024 · 0 comments · May be fixed by #338
Open

Implement Index<Range<…>> for OpStack #322

jan-ferdinand opened this issue Aug 30, 2024 · 0 comments · May be fixed by #338
Labels
✨ enhancement Improvement or new feature 💫 good first issue Good for newcomers 🟢 prio: low Not at all urgent

Comments

@jan-ferdinand
Copy link
Member

The operational stack can be indexed into to fetch individual elements through its implementations of Index<usize> and Index<OpStackElement> (and the corresponding IndexMut<…>). It can be useful to get a slice from the op stack.

Implement the combinations {Index, IndexMut} $\times$ {Range, RangeInclusive} $\times$ {usize, OpStackElement} for OpStack.

@jan-ferdinand jan-ferdinand added 💫 good first issue Good for newcomers ✨ enhancement Improvement or new feature 🟢 prio: low Not at all urgent labels Aug 30, 2024
@cyberbono3 cyberbono3 linked a pull request Nov 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Improvement or new feature 💫 good first issue Good for newcomers 🟢 prio: low Not at all urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant