LanguageExt.Core

LanguageExt.Core Monads Alternative Monads TryT Operators

Contents

class TryTExtensions Source #

Operators

operator >>> (K<TryT<M>, A> ma, K<TryT<M>, B> mb) Source #

Applicative sequence operator

operator * (K<TryT<M>, Func<A, B>> mf, K<TryT<M>, A> ma) Source #

Applicative apply operator

operator * (K<TryT<M>, A> ma, K<TryT<M>, Func<A, B>> mf) Source #

Applicative apply operator

class TryTExtensions Source #

Operators

operator | (K<TryT<M>, A> lhs, K<TryT<M>, A> rhs) Source #

operator | (K<TryT<M>, A> lhs, Pure<A> rhs) Source #

class TryTExtensions Source #

Operators

operator + (K<TryT<M>, A> ma) Source #

Downcast operator

class TryTExtensions Source #

Operators

operator | (K<TryT<M>, A> lhs, CatchM<Error, TryT<M>, A> rhs) Source #

operator | (K<TryT<M>, A> lhs, Fail<Error> rhs) Source #

operator | (K<TryT<M>, A> lhs, Fail<Exception> rhs) Source #

operator | (K<TryT<M>, A> lhs, Error rhs) Source #

operator | (K<TryT<M>, A> lhs, Exception rhs) Source #

class TryTExtensions Source #

Operators

operator * (Func<A, B> f, K<TryT<M>, A> ma) Source #

Functor map operator

operator * (K<TryT<M>, A> ma, Func<A, B> f) Source #

Functor map operator

class TryTExtensions Source #

Operators

operator >> (K<TryT<M>, A> ma, Func<A, K<TryT<M>, B>> f) Source #

Monad bind operator

Parameters

param ma

Monad to bind

param f

Binding function

returns

Mapped monad

operator >> (K<TryT<M>, A> lhs, K<TryT<M>, B> rhs) Source #

Sequentially compose two actions, discarding any value produced by the first, like sequencing operators (such as the semicolon) in C#.

Parameters

param lhs

First action to run

param rhs

Second action to run

returns

Result of the second action

class TryTExtensions Source #

Operators

operator + (K<TryT<M>, A> lhs, K<TryT<M>, A> rhs) Source #

operator + (K<TryT<M>, A> lhs, Pure<A> rhs) Source #

operator + (K<TryT<M>, A> lhs, Fail<Error> rhs) Source #

operator + (K<TryT<M>, A> lhs, Fail<Exception> rhs) Source #

operator + (K<TryT<M>, A> lhs, Error rhs) Source #

operator + (K<TryT<M>, A> lhs, Exception rhs) Source #