Skip to content

Function5Ops<T0, T1, T2, T3, T4, T5>

extensionFunction5Ops<T0, T1, T2, T3, T4, T5>onT5Function(T0,T1,T2,T3,T4)

Provides additional functions on functions with 5 parameters.

Properties

curried extension no setter

T5Function(T4)Function(T3)Function(T2)Function(T1)Function(T0)getcurried

Return the curried form of this function.

Available on Function5<T0, T1, T2, T3, T4, T5>, provided by the Function5Ops<T0, T1, T2, T3, T4, T5> extension

Implementation
dart
Function5C<T0, T1, T2, T3, T4, T5> get curried =>
    (t0) => (t1) => (t2) => (t3) => (t4) => this(t0, t1, t2, t3, t4);

tupled extension no setter

T5Function(Record)gettupled

Returns a function that takes a tuple of parameters rather than individual parameters.

Available on Function5<T0, T1, T2, T3, T4, T5>, provided by the Function5Ops<T0, T1, T2, T3, T4, T5> extension

Implementation
dart
Function1<(T0, T1, T2, T3, T4), T5> get tupled => (t) => t(this);

Methods

andThen() extension

T6Function(T0,T1,T2,T3,T4)andThen<T6>(T6Function(T5)fn,);

Composes this function with the provided function, this function being applied first.

Available on Function5<T0, T1, T2, T3, T4, T5>, provided by the Function5Ops<T0, T1, T2, T3, T4, T5> extension

Implementation
dart
Function5<T0, T1, T2, T3, T4, T6> andThen<T6>(Function1<T5, T6> fn) =>
    (t0, t1, t2, t3, t4) => fn(this(t0, t1, t2, t3, t4));

compose() extension

T5Function(T6)compose<T6>(RecordFunction(T6)fn)

Composes this function with the provided function, this function being applied first.

Available on Function5<T0, T1, T2, T3, T4, T5>, provided by the Function5Ops<T0, T1, T2, T3, T4, T5> extension

Implementation
dart
Function1<T6, T5> compose<T6>(Function1<T6, (T0, T1, T2, T3, T4)> fn) => (t6) => tupled(fn(t6));