LanguageExt.Core

LanguageExt.Core Monads Alternative Monads Validation Operators

Contents

class ValidationExtensions Source #

Operators

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

Applicative sequence operator

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

Applicative apply operator

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

Applicative apply operator

class ValidationExtensions Source #

Operators

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

Choice operator. Usually means if the first argument succeeds, return it, otherwise return the second argument.

Parameters

param lhs

Left hand side operand

param rhs

Right hand side operand

returns

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

Choice operator. Usually means if the first argument succeeds, return it, otherwise return the second argument.

Parameters

param lhs

Left hand side operand

param rhs

Right hand side operand

returns

class ValidationExtensions Source #

Operators

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

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

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

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

operator + (K<Validation<F>, A> lhs, Fail<F> rhs) Source #

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

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

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

class ValidationExtensions Source #

Operators

operator & (K<Validation<F>, A> lhs, K<Validation<F>, A> rhs) Source #

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

operator & (K<Validation<F>, A> lhs, Pure<A> rhs) Source #

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

operator & (K<Validation<F>, A> lhs, Fail<F> rhs) Source #

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

operator & (K<Validation<F>, A> lhs, F rhs) Source #

Semigroup combine operator: an associative binary operation.

Parameters

param lhs

Left-hand side operand

param rhs

Right-hand side operand

returns

class ValidationExtensions Source #

Operators

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

Downcast operator

class ValidationExtensions Source #

Operators

operator | (K<Validation<F>, A> lhs, CatchM<F, Validation<F>, A> rhs) Source #

operator | (K<Validation<F>, A> lhs, Fail<F> rhs) Source #

class ValidationExtensions Source #

Operators

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

Functor map operator

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

Functor map operator

class ValidationExtensions Source #

Operators

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

Monad bind operator

Parameters

param ma

Monad to bind

param f

Binding function

returns

Mapped monad

operator >> (K<Validation<F>, A> lhs, K<Validation<F>, 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