Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: gammazero/deque

Tags

v1.1.0

Toggle v1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add iterators (#32)

* Add iterators

- Iter returns front-to-back go iterator
- RIter returns back-to-front go iterator
- IterPopFront returns go iterator that removes items from front of Deque
- IterPopBack returns go iterator that removes items from back fo Deque

Using iterators to operate on sequences of items in Deque can avoid unnecessary range checks and multiple resizes. Iterators also allow Deque to be used with slices.Collect, slices.Sorted, etc.

* Show Iter working with slices.Sorted in test
* Describe iterators in README

v1.0.0

Toggle v1.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

v0.2.1

Toggle v0.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix Clear not zeroing items when buffer full (#26)

* Fix Clear not zeroing items when buffer full

When the deque buffer is full Clear was not zeroing the items in it. This fixes that problem.

Additional changes:
- New out-of-range panic messages
- Minor document spelling and formatting fixes

v0.2.0

Toggle v0.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Use generics to define Deque instance for a type (#23)

* Use generics to define Deque instance for a type
* Require go1.18

v0.1.2

Toggle v0.1.2's commit message
Add RIndex function

v0.1.1

Toggle v0.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md

v0.1.0

Toggle v0.1.0's commit message
Update readme