Last active
April 3, 2020 18:10
-
-
Save davidelettieri/05bcd14c55fe22be0841f740b9b55097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Func<Result<TSuccess, TError>, Result<TSuccess, TError>> Bind<TSuccess, TError>(Func<TSuccess, Result<TSuccess, TError>> f) | |
{ | |
return r => r.Match(t => f(t), e => new Result<TSuccess, TError>(e)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment