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

added select overload with projection for result #567

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christophercalm
Copy link

This extension allows you to use the linq query syntax for result as we are currently already able to do using maybe.

Whereas this code worked before

Maybe<string> name = "John";

var upper = from x in name select x.ToUpper();

This very similar code would not

Result<string> name = "John";

var upper = from x in name select x.ToUpper();

Adding an overload to Select with a projection allow for greater flexibility in monadic operations using the linq query syntax which enables the user to pass in values from previous operations down the monadic chain.

This is related to issue 566

@vkhorikov
Copy link
Owner

Answered here: #566 (comment)

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