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

Simplify KeyValueStore.modifyF #3383

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

Masynchin
Copy link
Contributor

@Masynchin Masynchin commented Jul 27, 2024

I came across this line, proved that fa.flatMap(a => f(a).flatTap(g)) <-> fa.flatMap(f).flatTap(g), and applied it to this line. Hope this small change reduces complexity a bit.

Copy link
Member

@alejandrohdezma alejandrohdezma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ Thanks!

@alejandrohdezma alejandrohdezma merged commit 8193b2d into scala-steward-org:main Jul 28, 2024
4 checks passed
@mzuehlke mzuehlke added this to the 0.31.0 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants