Creates an action that executes the sequence of elements in {0} in order.
Each element of {0} is either an action or a function that returns an action. An element in the list is executed only after all of the elements preceding it in the list are executed. In the case of an element that is a function, "executed" means that the function is evaluated and the action it returns is executed.
If an element of the list is a function then it must be either a 0 or 1-argument function that returns an action. The result of the execution of the preceding element is provided as the input to the function if it is a 1-argument function. The initial result (i.e. the result available to the first function in the sequence) is
null
.Any element in the list that depends on a side effect or result of executing a preceding element must be expressed using a function.
The result of
Action.Sequence
is the result of executing the last element in the list (ornull
if the sequence is empty).NOTE: A function in the list is not guaranteed to observe the side effects from the execution of the preceding elements in the list if the function references variables declared outside of its body (due to capture of free variables when the function is constructed). To ensure that updated data is observed by the function after an earlier element in the list executes, use an expression or function that directly accesses the affected data sources.