Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.5.1 - 2021-09-12

Added

  • Sponshorship link to mix.exs

Fixed

  • inspect/2 no longer renders certain sets as charlists.

1.5.0 - 2020-10-10

Changed

1.4.2 - 2019-11-24

Fixed

1.4.1 - 2019-11-24

Fixed

1.4.0 - 2019-11-24

Added

  • The IntSet.inverse/2 function, which is like taking the difference of your IntSet with a completely-full IntSet with n members. Say you have a list of indices, and you want to create a list of all the indices you don't have. Just take the inverse, providing a member limit.
  • Added an .editorconfig file to the project.

1.3.0 - 2018-05-25

Added

1.2.1 - 2018-02-09

Added

Changed

1.2.0 - 2018-02-06

Added

Changed

  • The Collectable implementation was dramatically optimized.

1.1.0 - 2018-02-03

Added

  • The IntSet.bitstring/1 function. Returns a binary with bits flipped at the indices at which the set has members. For example, say you have a set containing 0, 1, and 4. Calling IntSet.bitstring/1 on that set will return a five-bit-long binary with the first, second, and fifth bits set to 1, and the rest are 0.
  • The library is now typespecced and documented.

1.0.0 - 2018-02-01

Added

  • Constructor IntSet.new/0, which creates a new empty set.
  • Constructor IntSet.new/1, which accepts either an enumerable and returns a set containing those elements. This constructor also accepts a bitstring. See the documentation for details on that behavior.
  • The IntSet.put/2 function. Just like MapSet.put/2, this function returns a new set with the given value added.
  • The IntSet.delete/2 function. Again, just like MapSet.delete/2. Returns a new set with the given value removed.
  • The IntSet.union/2 function. Returns a set that contains elements of both given sets.
  • An implementation of Inspect that sorts members before printing them, so the order can be relied upon in doctests.
  • An implementation of Collectable.
  • An implementation of Enumerable.