What's Changed
- Add
Grow
function to grow deque, if necessary, so that it has space for at least n additional items. - Add
Swap
function to exchange two items in deque - Allow
Insert
with out of range indexes, inserting item at front or back of deque. - Update required go version to 1.22
- BREAKING Replace
SetMinCapacity
withSetBaseCap
to set base capacity, so that deque always has space reserved for at least the specified number of items. - BREAKING Remove New function as it is not needed to initialize Deque with initial size and base capacity. Use
Grow
andSetBaseCap
for this.
Full Changelog: v0.2.1...v1.0.0