chunky v0.13.0 Chunky.Grid View Source

Functions for creating and manipulating a two dimenesional grid.

Internally the grid is ordered as lists of lists, rather than a single list.

Link to this section Summary

Link to this section Functions

Add a list of point data to a grid. Points can be specified as {x, y, value} tuples or as maps of %{x: x, y: y, value: value}.

Example

#iex> Grid.new(10, 10) |> put_all([ {1, 1, "#"}, {3, 2, "."}, ...])

Link to this function

valid_coordinate(grid, arg)

View Source
Link to this function

valid_coordinate(grid, x, y)

View Source
Link to this function

valid_coordinate?(grid, arg)

View Source
Link to this function

valid_coordinate?(grid, x, y)

View Source