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 a function and C# extension method for mapping over the failure type #36

Merged

Conversation

battermann
Copy link
Contributor

mapFailure maps a function over the existing error messages in case of failure. In case of success, the message type will be changed and warnings will be discarded.

This is handy when we get a Result from another domain and we want to convert it to be compatible with our domain message type.

It is also helpful when we convert a Choice into a Result to match the type of Choice2Of2 with our domain message type.

… type.

`mapFailure` maps a function over the existing error messages in case of failure. In case of success, the message type will be changed and warnings will be discarded.

This is handy when we get a Result from another domain and we want to convert it to be compatible with our domain message type.

It is also helpful when we convert a Choice into a Result to match the type of Choice2Of2 with our domain message type.
forki added a commit that referenced this pull request Jan 17, 2016
…re_type

Added a function and C# extension method for mapping over the failure type
@forki forki merged commit 47decd4 into fsprojects:master Jan 17, 2016
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