Action
public typealias Action<I, A> = Co<MoorePartial<I>, A>
-
Creates an Action from an input and a value.
Declaration
Swift
static func liftAction<I>(_ input: I, _ a: A) -> Action<I, A> where W == MoorePartial<I>
Parameters
input
Input.
a
Value.
Return Value
An Action that supplies the input to a Moore machine and evaluates it with the value.
-
Creates an Action from an input.
Declaration
Swift
static func from<I>(_ input: I) -> Action<I, Void> where W == MoorePartial<I>, A == Void
Parameters
input
Input.
Return Value
An Action that supplies the input to a Moore machine.
-
Transform the input of an action.
Declaration
Swift
func mapAction<I, J>(_ f: @escaping (I) -> J) -> Action<J, A> where W == MoorePartial<I>
Parameters
f
Transforming function.
Return Value
A new Action with the transformed input.