Liking cljdoc? Tell your friends :D

emlyn.grid


add-colsclj

(add-cols grid & {:keys [num pos] :or {num 1}})
source

add-rowsclj

(add-rows grid & {:keys [num pos] :or {num 1}})
source

concat-lrclj

(concat-lr grid & grids)
source

concat-tbclj

(concat-tb grid & grids)
source

drop-colsclj

(drop-cols grid & {:keys [num pos] :or {num 1}})
source

drop-rowsclj

(drop-rows grid & {:keys [num pos] :or {num 1}})
source

everywhereclj

(everywhere val)
source

flip-lrclj

(flip-lr grid)

Flip a grid left to right.

Flip a grid left to right.
sourceraw docstring

flip-tbclj

(flip-tb grid)

Flip a grid top to bottom.

Flip a grid top to bottom.
sourceraw docstring

gridclj

(grid data)
(grid w h & [data])

Construct a grid.

Construct a grid.
sourceraw docstring

heightclj

(height grid)

The height of a grid in cells.

The height of a grid in cells.
sourceraw docstring

map-kvclj

(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.
sourceraw docstring

map-valsclj

(map-vals fn grid & grids)

Map a function over the values of a grid.

Map a function over the values of a grid.
sourceraw docstring

(print-table grid & {:keys [style] :or {style :simple} :as opts})

Print a grid as a table.

Print a grid as a table.
sourceraw docstring

rotate-180clj

(rotate-180 grid)

Rotate a grid 180 degrees.

Rotate a grid 180 degrees.
sourceraw docstring

rotate-leftclj

(rotate-left grid)

Rotate a grid 90 degrees anticlockwise.

Rotate a grid 90 degrees anticlockwise.
sourceraw docstring

rotate-rightclj

(rotate-right grid)

Rotate a grid 90 degrees clockwise.

Rotate a grid 90 degrees clockwise.
sourceraw docstring

set-index-mode!clj

(set-index-mode! mode)
source

table-strclj

(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.
sourceraw docstring

to-mapclj

(to-map grid & {:keys [filter] :or {filter some?}})

Convert a grid to a map of xy-coordinate to value optionally filtering out some cells (by default nils).

Convert a grid to a map of xy-coordinate to value
optionally filtering out some cells (by default nils).
sourceraw docstring

to-mapsclj

(to-maps grid & {:keys [filter xy-order] :or {filter some?}})

Convert a grid to a map of y (or x) coordinate to map of x (or y) coordinate to value, optionally filtering out some cells (by default nils). By default uses y as the first coordinate to match the format used in the constructor, pass in :xy-order true to use x as the first coordinate.

Convert a grid to a map of y (or x) coordinate to map of x (or y) coordinate to value,
optionally filtering out some cells (by default nils).
By default uses y as the first coordinate to match the format used in the constructor,
pass in `:xy-order true` to use x as the first coordinate.
sourceraw docstring

to-vecclj

(to-vec grid)

Convert a grid to a flat vector of all values (left to right, top to bottom).

Convert a grid to a flat vector of all values (left to right, top to bottom).
sourceraw docstring

to-vecsclj

(to-vecs grid)

Convert a grid to a vector of vectors, one for each row.

Convert a grid to a vector of vectors, one for each row.
sourceraw docstring

transposeclj

(transpose grid)

Transpose a grid.

Transpose a grid.
sourceraw docstring

widthclj

(width grid)

The width of a grid in cells.

The width of a grid in cells.
sourceraw docstring

with-index-modecljmacro

(with-index-mode mode & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close