Skip to main content

Closure Position Restriction

Erroneous Code Example

This error occurs when you place a closure operation in a position other than the last step of a traversal. In this example, the closure is not at the end of the traversal.

Solution

Place closure operations only at the end of traversals.