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

Add mapOrKeepIn / flatMapOrKeepIn to F[Option[A]] and F[Either[A,B]] syntaxes #501

Merged
merged 9 commits into from
Jun 23, 2024

Conversation

danicheg
Copy link
Member

These are counterpart methods to newly shipped Functor#mapOrKeep and Monad#flatMapOrKeep methods in Cats. From my tastes, mapOrKeepIn might be highly useful while flatMapOrKeepIn is not as much as the former. But I still decided to add it too and have complete conformity with Cats.

@danicheg
Copy link
Member Author

Hey @benhutchison, no hurry at all, just mentioning you to make this PR more visible for review. Thanks!

@danicheg
Copy link
Member Author

danicheg commented Jun 23, 2024

Alright. Changes are isolated, and it's merely four auxiliary methods affecting a few syntaxes. So, I'm merging this and will wait a week before releasing it to see if anyone expresses interest in propagating any related changes.

@danicheg danicheg merged commit 502f33d into typelevel:main Jun 23, 2024
13 checks passed
@danicheg danicheg deleted the or-keep branch June 23, 2024 05:46
@benhutchison
Copy link
Member

Apologies for missing this @danicheg 🙏

I need to de-noise my inbox so I don't miss these.

@danicheg
Copy link
Member Author

@benhutchison No worries, you owe nothing! It's FOSS.

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

Successfully merging this pull request may close these issues.

2 participants