JuliaCollections / JuliaCollections/DataStructures.jl

append!, prepend!, and other functions on deques

Open
#909 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
745
Forks
261
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Deque implementation and its existing push/pop and indexing tests; start by tracing those APIs and their edge cases. Done means Deque supports append!, prepend!, ranged access returning a vector, and removing multiple elements from either end, with tests covering the requested operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.