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

append!, prepend!, and other functions on deques #909

Open
phma opened this issue Jul 18, 2024 · 0 comments
Open

append!, prepend!, and other functions on deques #909

phma opened this issue Jul 18, 2024 · 0 comments

Comments

@phma
Copy link

phma commented Jul 18, 2024

I'm working on a program which uses a queue of bytes, with the bytes going in at one end in groups of 1-8 kB and coming out the other in groups of 4 bytes, or vice versa. I figured a deque would be a good data structure for this. However, I can't push or pop more than one byte at a time, so I'll have to use loops. Could you add append! and prepend! functions to Deque, a way to get a subscript range of a deque as a vector, and a way to delete multiple elements at once from either end of a Deque?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant