Deprecate the Set module
Module
Set
6 changes across 6 versions
Changes by version
Set is no longer a behaviour and its functions will be deprecated in upcoming releases
Set and HashSet are soft deprecated in favor of MapSet
Introduce MapSet data type. This new data type uses maps behind the scenes and is useful for storing a dozens of items in Erlang 17. In future versions when maps efficiently support large collections, it is meant to be the main Set abstraction in Elixir
Implementations of difference/2, disjoint?/2, equal?/2, intersection/2, subset?/2 and union/2 in HashSet are no longer polymorphic. To get polymorphism, use the functions in Set instead
Document and enforce all sets use the match operator (===) when checking for keys