LanguageExt.Core

LanguageExt.Core Class Instances Foldable

Contents

struct FoldCompositions <A> Source #

Methods

method Func<Unit, int> Count (Compositions<A> fa) Source #

method Func<Unit, S> Fold <S> (Compositions<A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Compositions<A> fa, S state, Func<S, A, S> f) Source #

struct FoldTuple <A> Source #

Tuple foldable instance Supports tuples up to 7 elements where each element is of the same type A

Parameters

type A

Element type

Fields

Methods

method Func<Unit, int> Count (Tuple<A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A, A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A, A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (Tuple<A, A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (Tuple<A, A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (Tuple<A, A, A, A, A, A, A> fa) Source #

method Func<Unit, S> Fold <S> (ValueTuple<A, A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, S> FoldBack <S> (ValueTuple<A, A, A, A, A, A, A> fa, S state, Func<S, A, S> f) Source #

method Func<Unit, int> Count (ValueTuple<A, A, A, A, A, A, A> fa) Source #

struct FoldValidation <MonoidFail, FAIL, SUCCESS> Source #

where MonoidFail : struct, Monoid<FAIL>, Eq<FAIL>

Methods

method Validation<MonoidFail, FAIL, SUCCESS> Append (Validation<MonoidFail, FAIL, SUCCESS> x, Validation<MonoidFail, FAIL, SUCCESS> y) Source #

method S BiFold <S> (Validation<MonoidFail, FAIL, SUCCESS> foldable, S state, Func<S, FAIL, S> fa, Func<S, SUCCESS, S> fb) Source #

method S BiFoldBack <S> (Validation<MonoidFail, FAIL, SUCCESS> foldable, S state, Func<S, FAIL, S> fa, Func<S, SUCCESS, S> fb) Source #

method Func<Unit, int> Count (Validation<MonoidFail, FAIL, SUCCESS> fa) Source #

method Validation<MonoidFail, FAIL, SUCCESS> Empty () Source #

method Func<Unit, S> Fold <S> (Validation<MonoidFail, FAIL, SUCCESS> fa, S state, Func<S, SUCCESS, S> f) Source #

method Func<Unit, S> FoldBack <S> (Validation<MonoidFail, FAIL, SUCCESS> fa, S state, Func<S, SUCCESS, S> f) Source #

method bool IsBottom (Validation<MonoidFail, FAIL, SUCCESS> choice) Source #

method bool IsLeft (Validation<MonoidFail, FAIL, SUCCESS> choice) Source #

method bool IsRight (Validation<MonoidFail, FAIL, SUCCESS> choice) Source #

method C Match <C> (Validation<MonoidFail, FAIL, SUCCESS> choice, Func<FAIL, C> Left, Func<SUCCESS, C> Right, Func<C> Bottom = null) Source #

method Unit Match (Validation<MonoidFail, FAIL, SUCCESS> choice, Action<FAIL> Left, Action<SUCCESS> Right, Action Bottom = null) Source #

struct FoldValidation <FAIL, SUCCESS> Source #

Methods

method Validation<FAIL, SUCCESS> Append (Validation<FAIL, SUCCESS> x, Validation<FAIL, SUCCESS> y) Source #

method S BiFold <S> (Validation<FAIL, SUCCESS> foldable, S state, Func<S, FAIL, S> fa, Func<S, SUCCESS, S> fb) Source #

method S BiFoldBack <S> (Validation<FAIL, SUCCESS> foldable, S state, Func<S, FAIL, S> fa, Func<S, SUCCESS, S> fb) Source #

method Func<Unit, int> Count (Validation<FAIL, SUCCESS> fa) Source #

method Validation<FAIL, SUCCESS> Empty () Source #

method Func<Unit, S> Fold <S> (Validation<FAIL, SUCCESS> fa, S state, Func<S, SUCCESS, S> f) Source #

method Func<Unit, S> FoldBack <S> (Validation<FAIL, SUCCESS> fa, S state, Func<S, SUCCESS, S> f) Source #

method bool IsBottom (Validation<FAIL, SUCCESS> choice) Source #

method bool IsLeft (Validation<FAIL, SUCCESS> choice) Source #

method bool IsRight (Validation<FAIL, SUCCESS> choice) Source #

method C Match <C> (Validation<FAIL, SUCCESS> choice, Func<Seq<FAIL>, C> Left, Func<SUCCESS, C> Right, Func<C> Bottom = null) Source #

method Unit Match (Validation<FAIL, SUCCESS> choice, Action<Seq<FAIL>> Left, Action<SUCCESS> Right, Action Bottom = null) Source #