- stepper(grid, createVisitor, start?, resolution?): ((step: number, fromStart?: boolean) => undefined | GridCell)
Returns ((step: number, fromStart?: boolean) => undefined | GridCell)
- (step, fromStart?): undefined | GridCell
Parameters
- step: number
- fromStart: boolean = false
Returns undefined | GridCell
Runs the provided
visitor
forsteps
, returning the cell we end at