FSharpx.Extras


Funcs

Namespace: FSharpx

Extensions around Actions and Funcs

Static members

Static memberDescription
AndThen(f, g)
Signature: (f:Func<'?7239,'?7240> * g:Func<'?7240,'?7241>) -> Func<'?7239,'?7241>
Type parameters: '?7239, '?7240, '?7241

Composes two functions (forward composition). Mathematically: g . f

Compose(f, g)
Signature: (f:Func<'?7235,'?7236> * g:Func<'?7237,'?7235>) -> Func<'?7237,'?7236>
Type parameters: '?7235, '?7236, '?7237

Composes two functions. Mathematically: f . g

Curry(f)
Signature: f:Func<'?7206,'?7207,'?7208,'?7209> -> Func<'?7206,Func<'?7207,Func<'?7208,'?7209>>>
Type parameters: '?7206, '?7207, '?7208, '?7209

Converts an uncurried function to a curried function

Curry(f)
Signature: f:Func<'?7202,'?7203,'?7204> -> Func<'?7202,Func<'?7203,'?7204>>
Type parameters: '?7202, '?7203, '?7204

Converts an uncurried function to a curried function

ToFunc(f)
Signature: f:Action<'?7198,'?7199,'?7200> -> Func<'?7198,'?7199,'?7200,unit>
Type parameters: '?7198, '?7199, '?7200

Converts an action to a function returning Unit

ToFunc(a)
Signature: a:Action<'?7195,'?7196> -> Func<'?7195,'?7196,unit>
Type parameters: '?7195, '?7196

Converts an action to a function returning Unit

ToFunc(a)
Signature: a:Action<'?7193> -> Func<'?7193,unit>
Type parameters: '?7193

Converts an action to a function returning Unit

ToFunc(a)
Signature: a:Action -> Func<unit>

Converts an action to a function returning Unit

Tuple(f)
Signature: f:Action<'?7218,'?7219,'?7220,'?7221> -> Action<'?7218 * '?7219 * '?7220 * '?7221>
Type parameters: '?7218, '?7219, '?7220, '?7221

Converts an action with 4 arguments into an action taking a 4-tuple

Tuple(f)
Signature: f:Action<'?7214,'?7215,'?7216> -> Action<'?7214 * '?7215 * '?7216>
Type parameters: '?7214, '?7215, '?7216

Converts an action with 3 arguments into an action taking a 3-tuple

Tuple(f)
Signature: f:Action<'?7211,'?7212> -> Action<'?7211 * '?7212>
Type parameters: '?7211, '?7212

Converts an action with 2 arguments into an action taking a 2-tuple

Untuple(f)
Signature: (f:Action<'?7230 * '?7231 * '?7232 * '?7233>) -> Action<'?7230,'?7231,'?7232,'?7233>
Type parameters: '?7230, '?7231, '?7232, '?7233

Converts an action taking a 4-tuple into an action with 4 parameters

Untuple(f)
Signature: (f:Action<'?7226 * '?7227 * '?7228>) -> Action<'?7226,'?7227,'?7228>
Type parameters: '?7226, '?7227, '?7228

/// Converts an action taking a 3-tuple into an action with 3 parameters

Untuple(f)
Signature: (f:Action<'?7223 * '?7224>) -> Action<'?7223,'?7224>
Type parameters: '?7223, '?7224

Converts an action taking a 2-tuple into an action with 2 parameters

Fork me on GitHub