the-sett / elm-nonempty-set

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

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