Extract value A and state S by passing the original state S.
A
S
To extract only the value A use evaluate.
evaluate
To extract only the state S use execute.
execute
Future<Tuple2<A, S>> run(S state) => _run(state);