Skip to content

RillTuple4Ops<T1, T2, T3, T4>

extension RillTuple4Ops<T1, T2, T3, T4> on Rill<Record>

Provides additional functions on a Rill of a 4 element tuple.

Methods

collectN() extension

Rill<T5> collectN<T5>(Option<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> collectN<T5>(Function4<T1, T2, T3, T4, Option<T5>> f) => collect(f.tupled);

evalMapN() extension

Rill<T5> evalMapN<T5>(IO<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> evalMapN<T5>(Function4<T1, T2, T3, T4, IO<T5>> f) => evalMap(f.tupled);

evalTapN() extension

Rill<Record> evalTapN<T5>(IO<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<(T1, T2, T3, T4)> evalTapN<T5>(Function4<T1, T2, T3, T4, IO<T5>> f) => evalTap(f.tupled);

filterN() extension

Rill<Record> filterN(bool Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

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

filterNotN() extension

Rill<Record> filterNotN(bool Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

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

flatMapN() extension

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

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

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

mapN() extension

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

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

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

parEvalMapN() extension

Rill<T5> parEvalMapN<T5>(int maxConcurrent, IO<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> parEvalMapN<T5>(
  int maxConcurrent,
  Function4<T1, T2, T3, T4, IO<T5>> f,
) => parEvalMap(maxConcurrent, f.tupled);

parEvalMapUnboundedN() extension

Rill<T5> parEvalMapUnboundedN<T5>(IO<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> parEvalMapUnboundedN<T5>(Function4<T1, T2, T3, T4, IO<T5>> f) =>
    parEvalMapUnbounded(f.tupled);

parEvalMapUnorderedN() extension

Rill<T5> parEvalMapUnorderedN<T5>(
  int maxConcurrent,
  IO<T5> Function(T1, T2, T3, T4) f,
)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> parEvalMapUnorderedN<T5>(
  int maxConcurrent,
  Function4<T1, T2, T3, T4, IO<T5>> f,
) => parEvalMapUnordered(maxConcurrent, f.tupled);

parEvalMapUnorderedUnboundedN() extension

Rill<T5> parEvalMapUnorderedUnboundedN<T5>(IO<T5> Function(T1, T2, T3, T4) f)

Available on Rill<O>, provided by the RillTuple4Ops<T1, T2, T3, T4> extension

Implementation
dart
Rill<T5> parEvalMapUnorderedUnboundedN<T5>(Function4<T1, T2, T3, T4, IO<T5>> f) =>
    parEvalMapUnorderedUnbounded(f.tupled);