purescript-ordered-collections icon indicating copy to clipboard operation
purescript-ordered-collections copied to clipboard

Add non-empty `Map`

Open gabejohnson opened this issue 3 years ago • 0 comments

At work we newtype Map in a manner analogous to Data.Set.NonEmpty.NonEmptySet, copying the API of Data.Map.Internal without empty and dealing with partial functions by returning Maybe (NonEmptyMap k v).

I'm curious if there's any interest in adding such a type to this package.

gabejohnson avatar Apr 20 '22 15:04 gabejohnson