Skip to content

IListTuple5Ops<T1, T2, T3, T4, T5>

extension IListTuple5Ops<T1, T2, T3, T4, T5> on IList<Record>

Provides additional functions on an IList of a 5 element tuple.

Methods

dropWhileN() extension

IList<Record> dropWhileN(bool Function(T1, T2, T3, T4, T5) p)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<(T1, T2, T3, T4, T5)> dropWhileN(Function5<T1, T2, T3, T4, T5, bool> p) =>
    dropWhile(p.tupled);

filterN() extension

IList<Record> filterN(bool Function(T1, T2, T3, T4, T5) p)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<(T1, T2, T3, T4, T5)> filterN(Function5<T1, T2, T3, T4, T5, bool> p) => filter(p.tupled);

filterNotN() extension

IList<Record> filterNotN(bool Function(T1, T2, T3, T4, T5) p)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<(T1, T2, T3, T4, T5)> filterNotN(Function5<T1, T2, T3, T4, T5, bool> p) =>
    filterNot(p.tupled);

flatMapN() extension

IList<T6> flatMapN<T6>(IList<T6> Function(T1, T2, T3, T4, T5) f)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<T6> flatMapN<T6>(Function5<T1, T2, T3, T4, T5, IList<T6>> f) => flatMap(f.tupled);

foreachN() extension

void foreachN(void Function(T1, T2, T3, T4, T5) f)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
void foreachN(Function5<T1, T2, T3, T4, T5, void> f) => foreach(f.tupled);

mapN() extension

IList<T6> mapN<T6>(T6 Function(T1, T2, T3, T4, T5) f)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<T6> mapN<T6>(Function5<T1, T2, T3, T4, T5, T6> f) => map(f.tupled);

takeWhileN() extension

IList<Record> takeWhileN(bool Function(T1, T2, T3, T4, T5) p)

Available on IList<A>, provided by the IListTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IList<(T1, T2, T3, T4, T5)> takeWhileN(Function5<T1, T2, T3, T4, T5, bool> p) =>
    takeWhile(p.tupled);