chainFirst<B> method

  1. @override
ReaderTask<E, A> chainFirst<B>(
  1. covariant ReaderTask<E, B> chain(
    1. A a
    )
)
override

Implementation

@override
ReaderTask<E, A> chainFirst<B>(
  covariant ReaderTask<E, B> Function(A a) chain,
) =>
    flatMap(
      (a) => chain(a).map((b) => a),
    );