(height grid)The height of a grid in cells.
The height of a grid in cells.
(map-kv fn grid & grids)Map a function over the keys and values of a grid.
Map a function over the keys and values of a grid.
(map-vals fn grid & grids)Map a function over the values of a grid.
Map a function over the values of a grid.
(print-table grid & {:keys [style] :or {style :simple} :as opts})Print a grid as a table.
Print a grid as a table.
(rotate-180 grid)Rotate a grid 180 degrees.
Rotate a grid 180 degrees.
(rotate-left grid)Rotate a grid 90 degrees anticlockwise.
Rotate a grid 90 degrees anticlockwise.
(rotate-right grid)Rotate a grid 90 degrees clockwise.
Rotate a grid 90 degrees clockwise.
(table-str grid & {:as opts})Return a string containing a grid formatted as a table.
Return a string containing a grid formatted as a table.
(to-map grid & {:keys [filter] :or {filter some?}})Convert the grid to a plain map of coordinate to value.
Convert the grid to a plain map of coordinate to value.
(to-maps grid & {:keys [filter] :or {filter some?}})Convert the grid to a map of x to map of y to value.
Convert the grid to a map of x to map of y to value.
(to-vec grid)Convert the grid to a flat vector of all values (left to right, top to bottom).
Convert the grid to a flat vector of all values (left to right, top to bottom).
(to-vecs grid)Convert the grid to a vector of vectors, one for each row.
Convert the grid to a vector of vectors, one for each row.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |