issues
search
bridgefield
/
MonadicBits
Useful monads for building C# projects.
https://www.nuget.org/packages/bridgefield.MonadicBits/
MIT License
6
stars
0
forks
source link
Added async functions for converting monad types
#20
Closed
apfohl
closed
1 year ago
apfohl
commented
1 year ago
For Maybe to Either conversion:
Task<Either<TLeft, T>> ToEitherAsync<T, TLeft>(this Maybe
maybe, TLeft left)
Task<Either<TLeft, T>> ToEitherAsync<T, TLeft>(this Task<Maybe
> maybeTask, TLeft left)
For Either to Maybe conversion:
Task<Maybe
> ToMaybeAsync<TLeft, TRight>(this Either<TLeft, TRight> either)
Task<Maybe
> ToMaybeAsync<TLeft, TRight>(this Task<Either<TLeft, TRight>> eitherTask)
For Maybe to Either conversion:
For Either to Maybe conversion: