ComposeExtensions Class

DECLARATION
public static class ComposeExtensions
NAMESPACE
LanguageExt

Methods

BackCompose<T>(Action<T>, Func<T>)
SUMMARY

Action composition

PARAMETERS
b
Action<T>
a
Func<T>
DECLARATION
[Pure]
public static Action BackCompose<T>(this Action<T> b, Func<T> a)
RETURNS
Action
() => b(a())
BackCompose<T1, T2, T3>(Func<T2, T3>, Func<T1, T2>)
SUMMARY

Function composition

PARAMETERS
b
Func<T2, T3>
a
Func<T1, T2>
DECLARATION
[Pure]
public static Func<T1, T3> BackCompose<T1, T2, T3>(this Func<T2, T3> b, Func<T1, T2> a)
RETURNS
Func<T1, T3>
v => b(a(v))
BackCompose<T1, T2>(Func<T1, T2>, Func<T1>)
SUMMARY

Function composition

PARAMETERS
b
Func<T1, T2>
a
Func<T1>
DECLARATION
[Pure]
public static Func<T2> BackCompose<T1, T2>(this Func<T1, T2> b, Func<T1> a)
RETURNS
Func<T2>
() => b(a())
BackCompose<T1, T2>(Action<T2>, Func<T1, T2>)
SUMMARY

Action composition

PARAMETERS
b
Action<T2>
a
Func<T1, T2>
DECLARATION
[Pure]
public static Action<T1> BackCompose<T1, T2>(this Action<T2> b, Func<T1, T2> a)
RETURNS
Action<T1>
v => b(a(v))
Compose<T>(Func<T>, Action<T>)
SUMMARY

Action back composition

PARAMETERS
a
Func<T>
b
Action<T>
DECLARATION
[Pure]
public static Action Compose<T>(this Func<T> a, Action<T> b)
RETURNS
Action
() => b(a())
Compose<T1, T2, T3>(Func<T1, T2>, Func<T2, T3>)
SUMMARY

Function back composition

PARAMETERS
a
Func<T1, T2>
b
Func<T2, T3>
DECLARATION
[Pure]
public static Func<T1, T3> Compose<T1, T2, T3>(this Func<T1, T2> a, Func<T2, T3> b)
RETURNS
Func<T1, T3>
v => b(a(v))
Compose<T1, T2>(Func<T1>, Func<T1, T2>)
SUMMARY

Function back composition

PARAMETERS
a
Func<T1>
b
Func<T1, T2>
DECLARATION
[Pure]
public static Func<T2> Compose<T1, T2>(this Func<T1> a, Func<T1, T2> b)
RETURNS
Func<T2>
() => b(a())
Compose<T1, T2>(Func<T1, T2>, Action<T2>)
SUMMARY

Action back composition

PARAMETERS
a
Func<T1, T2>
b
Action<T2>
DECLARATION
[Pure]
public static Action<T1> Compose<T1, T2>(this Func<T1, T2> a, Action<T2> b)
RETURNS
Action<T1>
v => b(a(v))