flatMapFirst<S, A> function

State<S, A> Function(State<S, A> fa) flatMapFirst<S, A>(
  1. State<S, dynamic> f(
    1. A a
    )
)

Compose computations in sequence, discarding the result

Implementation

State<S, A> Function(State<S, A> fa) flatMapFirst<S, A>(
  State<S, dynamic> Function(A a) f,
) =>
    map((a) {
      f(a);
      return a;
    });