LanguageExt.Core

LanguageExt.Core Monads

Not all of the monadic types are in this section, but most of them are. The other monadic types are the collections, and the effect-system monads of Aff, Eff, and Proxy.

Contents

Sub modules

Alternative Value Monads
Monadic conditionals
State and Environment Monads

struct Identity <A> Source #

Identity monad

Simply carries the bound value through its bind expressions without imparting any additional behaviours. It can be constructed using:

Identity<int> ma = Id(123);

Parameters

type A

Bound value type

Fields

field A value Source #

field bool IsBottom Source #

Properties

property A Value Source #

Constructors

constructor Identity (A value) Source #

Methods

method bool Equals (Identity<A> other) Source #

method bool Equals (object obj) Source #

method int GetHashCode () Source #

method int CompareTo (object obj) Source #

method int CompareTo (Identity<A> other) Source #

method Identity<B> Map <B> (Func<A, B> f) Source #

method Identity<B> Select <B> (Func<A, B> f) Source #

method Identity<B> Bind <B> (Func<A, Identity<B>> f) Source #

method Identity<B> SelectMany <B> (Func<A, Identity<B>> f) Source #

method Identity<C> SelectMany <B, C> (Func<A, Identity<B>> bind, Func<A, B, C> project) Source #

Operators

operator == (Identity<A> lhs, Identity<A> rhs) Source #

operator != (Identity<A> lhs, Identity<A> rhs) Source #

operator > (Identity<A> lhs, Identity<A> rhs) Source #

operator >= (Identity<A> lhs, Identity<A> rhs) Source #

operator < (Identity<A> lhs, Identity<A> rhs) Source #

operator <= (Identity<A> lhs, Identity<A> rhs) Source #

class Prelude Source #

Methods

method Identity<A> Id <A> (A value) Source #

Construct identity monad