How to handle indices outside the usual bounds. Valid values are:
:strict (default): no special handling of indices:wrap: indices wrap around the edges of the grid:clamp: indices clamp to the edges of the grid:python: negative indices count from the end of the grid
Indices that still fall outside the grid after this handling will
throw an exception if you try to set (e.g. assoc) them,
and will return the default value (or nil) when you read them.How to handle indices outside the usual bounds. Valid values are: - `:strict` (default): no special handling of indices - `:wrap`: indices wrap around the edges of the grid - `:clamp`: indices clamp to the edges of the grid - `:python`: negative indices count from the end of the grid Indices that still fall outside the grid after this handling will throw an exception if you try to set (e.g. `assoc`) them, and will return the default value (or `nil`) when you read them.
(height grid)The height of a grid in cells.
The height of a grid in cells.
(shape->keys [w h])Get the keys of a grid.
Get the keys of a grid.
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 |