ixfx
    Preparing search index...

    Functions

    breadthLogic
    columnLogic

    Visits cells running down columns, left-to-right. When reverse option is provided, we go up columns, right-to-left instead.

    create

    Returns a generator that iterates over cells with a given logic. Once created, the same logic can be used on different grids - it is a pure function.

    createWithLogic

    Returns a function which creates a generator to iterate over cells with a given logic. Use create to specify this logic with a string.

    depthLogic
    neighboursLogic
    randomContiguousLogic
    randomLogic
    rowLogic

    Visit by following rows. Normal order is left-to-right, top-to-bottom.

    stepper

    Runs the provided visitor for a number of steps, returning the cell we end at

    // Create visitor & stepper
    const visitor = Grids.Visit.create(`row`);
    const stepper = Grids.Visit.stepper(grid, visitor
    visitByNeighbours

    Visits every cell in grid using supplied selection function.

    Type Aliases

    VisitorTypes