Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Suggestion: Support deque-like operations? #131

Open
paulo-raca opened this issue Dec 1, 2016 · 0 comments
Open

Suggestion: Support deque-like operations? #131

paulo-raca opened this issue Dec 1, 2016 · 0 comments

Comments

@paulo-raca
Copy link
Contributor

Hello, and thanks for this great library.

Given it is implemented as a circular buffer, it would be (reasonably) easy to support deque-like operations. E.g.: addFront/addBack, peekFront/peekBack, removeFront/removeBack, iterator/descendingIterator`

From what I can tell, doing it would require changes to the file format.
E.g., we can add the length of each element twice, both before and after the payload, so that the list can be traversed on both directions.

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

No branches or pull requests

1 participant