non-empty-containers
creates two new data structures NonEmptyMap
and NonEmptySet
by extending Haskell's built-in Map
and Set
data structures.
NonEmptyMap
allows a user to create Map
data structures
while promising they will never be empty.
NonEmptySet
allows a user to create Set
data structures
while promising they will never be empty.