Skip to content

Function13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

extensionFunction13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>onT13Function(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12)

Provides additional functions on functions with 13 parameters.

Properties

curried extension no setter

T13Function(T12)Function(T11)Function(T10)Function(T9)Function(T8)Function(T7)Function(T6)Function(T5)Function(T4)Function(T3)Function(T2)Function(T1)Function(T0)getcurried

Return the curried form of this function.

Available on Function13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, provided by the Function13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extension

Implementation
dart
Function13C<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> get curried =>
    (t0) =>
        (t1) =>
            (t2) =>
                (t3) =>
                    (t4) =>
                        (t5) =>
                            (t6) =>
                                (t7) =>
                                    (t8) =>
                                        (t9) =>
                                            (t10) =>
                                                (t11) =>
                                                    (t12) => this(
                                                      t0,
                                                      t1,
                                                      t2,
                                                      t3,
                                                      t4,
                                                      t5,
                                                      t6,
                                                      t7,
                                                      t8,
                                                      t9,
                                                      t10,
                                                      t11,
                                                      t12,
                                                    );

tupled extension no setter

T13Function(Record)gettupled

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

Available on Function13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, provided by the Function13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extension

Implementation
dart
Function1<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), T13> get tupled =>
    (t) => t(this);

Methods

andThen() extension

T14Function(T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,)andThen<T14>(T14Function(T13)fn);

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

Available on Function13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, provided by the Function13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extension

Implementation
dart
Function13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T14> andThen<T14>(
  Function1<T13, T14> fn,
) =>
    (t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) =>
        fn(this(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12));

compose() extension

T13Function(T14)compose<T14>(RecordFunction(T14)fn)

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

Available on Function13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, provided by the Function13Ops<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extension

Implementation
dart
Function1<T14, T13> compose<T14>(
  Function1<T14, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> fn,
) => (t14) => tupled(fn(t14));