ap
ap<
S,A>(arg): <B>(fn) =>State<S,B>
Defined in: Core/State.ts:148
Applies a function wrapped in a State to a value wrapped in a State. The function computation runs first; its output state is the input to the argument computation.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”State<S, A>
Returns
Section titled “Returns”<
B>(fn):State<S,B>
Type Parameters
Section titled “Type Parameters”B
Parameters
Section titled “Parameters”State<S, (a) => B>
Returns
Section titled “Returns”State<S, B>