Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@gammazero gammazero released this 15 Nov 08:47
610179f

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 with SetBaseCap 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 and SetBaseCap for this.

Full Changelog: v0.2.1...v1.0.0