Skip to content

Add Flatten to monads #866

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add Flatten to monads #866

wants to merge 6 commits into from

Conversation

csillikd-messerli
Copy link
Contributor

I deliberately chose Flatten; I find Join less self-explanatory.

@bash
Copy link
Member

bash commented Jun 2, 2025

I haven't really had a need for Flatten, but I also don't have any strong preference against it. Maybe @FreeApophis or @Mafii have a preference for/against this?

One thing to note is that for WhereSelect we chose to go with an overload for flattening:
#448 I'm not sure if SelectMany() is very clear though, so Flatten is probably the better choice?

Copy link
Member

@bash bash left a comment

Choose a reason for hiding this comment

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

code lgtm otherwise

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.

3 participants