Add NonEmptyMap and NonEmptySet to containers

Henning Thielemann lemming at
Thu Apr 18 23:22:25 UTC 2019

On Thu, 18 Apr 2019, John Cotton Ericson wrote:

> In I proposed adding 
> non-empty variants of Map and Set, analogous to Data.List.NonEmpty for 
> List, to containers. semigroupoids demonstrates the many uses and 
> structure of non-empty containers in general, and libraries such as 
> and 
> demonstrate the 
> interest in non-empty maps and sets in particular.

I have also my implementations:

Interesting to know, that the implementation in containers could already 
provide this functionality with little changes.

More information about the Libraries mailing list