Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there's no "-" method on NonEmptySet #876

Open
TimPigden opened this issue Feb 19, 2022 · 2 comments
Open

there's no "-" method on NonEmptySet #876

TimPigden opened this issue Feb 19, 2022 · 2 comments

Comments

@TimPigden
Copy link
Contributor

was this just left out or was it deliberate?

@TimPigden
Copy link
Contributor Author

OK, I get it - because remove returns a Set not a NonEmptySet
So looking at the API, I'd personally like a removeNonEmpty(elem: A): Option[NonEmptySet[A]]
which is a set-based equivalent to tailNonEmpty
I'll put one in

@adamgfraser
Copy link
Contributor

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants