Skip to content

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

Open
@phma

Description

@phma

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions