LanguageExt.Core

LanguageExt.Core Class Instances Semigroup

Contents

struct Min <ORD, A> Source #

where ORD : struct, Ord<A>

Ordered values form a semigroup under minimum.

Parameters

type A

The type of the ordered values.

Fields

Methods

method A Append (A x, A y) Source #

struct Max <ORD, A> Source #

where ORD : struct, Ord<A>

Ordered values form a semigroup under maximum.

Parameters

type A

The type of the ordered values.

Fields

Methods

method A Append (A x, A y) Source #

struct SemiError Source #

Error semigroup

Methods

method Error Append (Error x, Error y) Source #

struct SemiOption <SemigroupA, A> Source #

where SemigroupA : struct, Semigroup<A>

Fields

field SemiOption<SemigroupA, A> Inst = default(SemiOption<SemigroupA, A>) Source #

Properties

property Option<A> None Source #

Methods

method MB Bind <MonadB, MB, B> (Option<A> ma, Func<A, MB> f) Source #

where MonadB : struct, Monad<Unit, Unit, MB, B>

method MB BindAsync <MonadB, MB, B> (Option<A> ma, Func<A, MB> f) Source #

where MonadB : struct, MonadAsync<Unit, Unit, MB, B>

method Option<A> Fail (object err = null) Source #

method Option<A> Plus (Option<A> a, Option<A> b) Source #

method Option<A> Return (Func<Unit, A> f) Source #

method Option<A> Zero () Source #

method bool IsNone (Option<A> opt) Source #

method bool IsSome (Option<A> opt) Source #

method B Match <B> (Option<A> opt, Func<A, B> Some, Func<B> None) Source #

method B Match <B> (Option<A> opt, Func<A, B> Some, B None) Source #

method Unit Match (Option<A> opt, Action<A> Some, Action None) Source #

method B MatchUnsafe <B> (Option<A> opt, Func<A, B> Some, Func<B> None) Source #

method B MatchUnsafe <B> (Option<A> opt, Func<A, B> Some, B None) Source #

method Func<Unit, S> Fold <S> (Option<A> ma, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Option<A> ma, S state, Func<S, A, S> f) Source #

method S BiFold <S> (Option<A> ma, S state, Func<S, A, S> fa, Func<S, Unit, S> fb) Source #

method S BiFoldBack <S> (Option<A> ma, S state, Func<S, A, S> fa, Func<S, Unit, S> fb) Source #

method Func<Unit, int> Count (Option<A> ma) Source #

method Option<A> Some (A x) Source #

method Option<A> Optional (A x) Source #

method Option<A> Run (Func<Unit, Option<A>> ma) Source #

method Option<A> BindReturn (Unit _, Option<A> mb) Source #

method Option<A> Return (A x) Source #

method Option<A> Empty () Source #

method Option<A> Append (Option<A> x, Option<A> y) Source #

method bool Equals (Option<A> x, Option<A> y) Source #

method int GetHashCode (Option<A> x) Source #

method Option<A> Apply (Func<A, A, A> f, Option<A> fa, Option<A> fb) Source #

method int Compare (Option<A> x, Option<A> y) Source #

method OptionAsync<A> ToAsync (Option<A> sa) Source #

method Task<bool> EqualsAsync (Option<A> x, Option<A> y) Source #

method Task<int> GetHashCodeAsync (Option<A> x) Source #

method Task<int> CompareAsync (Option<A> x, Option<A> y) Source #