Skip to content

Add non-empty Map #58

@gabejohnson

Description

@gabejohnson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions