skip

Skips a specified number of commands in the iterator.

This method advances the iterator by the given number of commands, ensuring that enough commands are available to skip.

Return

This iterator instance for method chaining.

Parameters

skip

The number of commands to skip (must be non-negative).

Throws

If skip is negative.

If there are not enough commands to skip.