LanguageExt.Core

LanguageExt.Core Monads Alternative Monads ValidationT Prelude

Contents

class Prelude Source #

Methods

method ValidationT<F, M, B> map <F, M, A, B> (Func<A, B> f, K<ValidationT<F, M>, A> ma) Source #

where F : Monoid<F>
where M : Monad<M>

Functor map operation

Unwraps the value within the functor, passes it to the map function f provided, and then takes the mapped value and wraps it back up into a new functor.

Parameters

param ma

Functor to map

param f

Mapping function

returns

Mapped functor

method ValidationT<F, M, B> action <F, M, A, B> (K<ValidationT<F, M>, A> ma, K<ValidationT<F, M>, B> mb) Source #

where F : Monoid<F>
where M : Monad<M>

Applicative action: runs the first applicative, ignores the result, and returns the second applicative

method ValidationT<F, M, B> apply <F, M, A, B> (K<ValidationT<F, M>, Func<A, B>> mf, K<ValidationT<F, M>, A> ma) Source #

where F : Monoid<F>
where M : Monad<M>

Applicative functor apply operation

Unwraps the value within the ma applicative-functor, passes it to the unwrapped function(s) within mf, and then takes the resulting value and wraps it back up into a new applicative-functor.

Parameters

param ma

Value(s) applicative functor

param mf

Mapping function(s)

returns

Mapped applicative functor