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 the grid to a plain map of coordinate to value.

Convert the grid to a plain map of coordinate to value.
sourceraw docstring

to-mapsclj

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

to-vecclj

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

to-vecsclj

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