Skip to content

Releases: GarrisonJ/sorted_containers

v1.1.0

16 Oct 03:36

Choose a tag to compare

  • Fix SortedArray#bsearch_index to work with comparable operator <=>
  • Fix bug where deleting elements can cause array to become corrupted

v1.0.0

30 May 01:20

Choose a tag to compare

What's Changed

This is a huge release. Almost every method defined on Set, Hash, and Array have been implemented for SortedSet, SortedHash, and SortedArray.

If you find any discrepancies between the standard classes and the Sorted classes please submit an issue. All of the methods should work the same except for instances where the sorted nature of the classes changes the behavior. For example, #first should obviously return the smallest element.

Some methods weren't implemented because they don't make sense for sorted containers. Examples are methods like #shuffle, #reverse, and #rotate. Sometimes it's not obvious that a method isn't relevant. For example, #compact! doesn't make sense for a SortedArray because nils are not comparable.

New Contributors

Full Changelog: https://github.com/GarrisonJ/sorted_containers/commits/v1.0.0