gets<S, A> function
Get a value that depends on the state
Implementation
State<S, A> gets<S, A>(A Function(S s) f) => State((s) => tuple2(f(s), s));
Get a value that depends on the state
State<S, A> gets<S, A>(A Function(S s) f) => State((s) => tuple2(f(s), s));