Given an input step state, take a step and return the new state. This is a lower-level function, you probably want to use arrayIndexStepper instead.
Current step state
How to step
Context in which we are stepping
New step state
Given an input step state, take a step and return the new state. This is a lower-level function, you probably want to use arrayIndexStepper instead.