LanguageExt.Core

LanguageExt.Core Monads Alternative Monads Try Operators

Contents

class TryExtensions Source #

Operators

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

Applicative sequence operator

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

Applicative apply operator

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

Applicative apply operator

class TryExtensions Source #

Operators

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

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

class TryExtensions Source #

Operators

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

Downcast operator

class TryExtensions Source #

Operators

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

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

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

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

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

class TryExtensions Source #

Operators

operator | (K<Try, A> lhs, Finally<Try, X> rhs) Source #

Run a finally operation after the main operation regardless of whether it succeeds or not.

Parameters

param lhs

Primary operation

param rhs

Finally operation

returns

Result of primary operation

class TryExtensions Source #

Operators

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

Functor map operator

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

Functor map operator

class TryExtensions Source #

Operators

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

Monad bind operator

Parameters

param ma

Monad to bind

param f

Binding function

returns

Mapped monad

operator >> (K<Try, A> lhs, K<Try, 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 TryExtensions Source #

Operators

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

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

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

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

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

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