Skip to content

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

extensionIOTuple5Ops<T1, T2, T3, T4, T5>onIO<Record>

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

Methods

flatMapN() extension

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

Available on IO<A>, provided by the IOTuple5Ops<T1, T2, T3, T4, T5> extension

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

flatTapN() extension

IO<Record>flatTapN<T6>(IO<T6>Function(T1,T2,T3,T4,T5)f,);

Available on IO<A>, provided by the IOTuple5Ops<T1, T2, T3, T4, T5> extension

Implementation
dart
IO<(T1, T2, T3, T4, T5)> flatTapN<T6>(Function5<T1, T2, T3, T4, T5, IO<T6>> f) =>
    flatTap(f.tupled);

mapN() extension

IO<T6>mapN<T6>(T6Function(T1,T2,T3,T4,T5)f)

Available on IO<A>, provided by the IOTuple5Ops<T1, T2, T3, T4, T5> extension

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