Skip to content
Elm Set built on top of AnyDict
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Alternative set implementation for type-safe sets of any type.

This library solves the same problem as truqu/elm-dictset just in a slightly different way. It's built on top of any-dict the same way the Set from elm/core is implemented on top of standard Dict. The only benefit is consistency across the two and symmetry to core library implementations. In fact, dictset implementation is slightly more optimal since it's built on top of standard Dict implementation and doesn't hold extra unit (()) constructor internally. I encourage you to consider the pros and cons of both before picking one despite I believe that switching between the two should be pretty straightforward if needed.

API mirrors the standard Set as closely as possible.

Some parts of the documentation are stolen directly from elm/core.

You can’t perform that action at this time.