turboMaCk / any-set

Elm Set built on top of AnyDict

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnySet

Build Status

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.

About

Elm Set built on top of AnyDict

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 98.4%Language:Nix 1.6%