flatten<S, A> function

State<S, A> flatten<S, A>(
  1. State<S, State<S, A>> fa
)

Implementation

State<S, A> flatten<S, A>(State<S, State<S, A>> fa) => State((sa) {
      final next = fa(sa);
      return next.first(next.second);
    });