flatMap<S, A, B> function
Compose computations in sequence
Implementation
State<S, B> Function(State<S, A> fa) flatMap<S, A, B>(
State<S, B> Function(A a) f,
) =>
(fa) => State((sa) {
final next = fa(sa);
return f(next.first)(next.second);
});