Skip to content

IOTuple3Ops<T1, T2, T3>

extension IOTuple3Ops<T1, T2, T3> on IO<Record>

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

Methods

flatMapN() extension

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

Available on IO<A>, provided by the IOTuple3Ops<T1, T2, T3> extension

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

flatTapN() extension

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

Available on IO<A>, provided by the IOTuple3Ops<T1, T2, T3> extension

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

mapN() extension

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

Available on IO<A>, provided by the IOTuple3Ops<T1, T2, T3> extension

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