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 is a website building & hosting documentation for Clojure/Script libraries
× close