Skip to content

IListTuple4Ops<T1, T2, T3, T4>

extension IListTuple4Ops<T1, T2, T3, T4> on IList<Record>

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

Methods

dropWhileN() extension

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

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

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

filterN() extension

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

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

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

filterNotN() extension

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

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

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

flatMapN() extension

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

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

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

foreachN() extension

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

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

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

mapN() extension

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

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

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

takeWhileN() extension

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

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

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