list |
The items to be walked over. |
stepPattern |
Returns integers that will be used to increment the index into list. |
directionPattern |
Used to determine the behavior at boundaries. When the index crosses a boundary, the next direction is drawn from this stream: 1 means use stepPattern as is, -1 means go in the reverse direction. Common patterns:
|
startPos |
Where to start in the list. |