/elm-nonempty-set

A non-empty set implementation with similar API to elm/core Set.

BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Contacts for Support

elm-nonempty-set

elm-nonempty-set provides a variation on the elm/core Set module, for non-empty sets.

The APIs are identicial where possibly, but have different types in places depending on the non-emptiness property.

For example in elm/core Set:

fromList : List comparable -> Set comparable

corresponds to:

fromList : List comparable -> Maybe (NonemptySet comparable)

as the list may be empty, so cannot create a non-empty set.