Liking cljdoc? Tell your friends :D

advent-utils.grid.mapgrid


ascii->MapGrid2Dclj

(ascii->MapGrid2D charmap lines)

Convert an ASCII represention of a 2D grid into a MapGrid2D.

charmap is a map where the keys are ASCII chars and the values are expected to be symbols to use in your application. Ex.: (def codes {. :space # :wall})

Convert an ASCII represention of a 2D grid into
a MapGrid2D.

charmap is a map where the keys are ASCII chars and
the values are expected to be symbols to use in
your application. Ex.: (def codes {\. :space \# :wall})
sourceraw docstring

lists->MapGrid2Dclj

(lists->MapGrid2D values)

Index a 2D list-of-list-of-values with coordinates starting at [0 0]

Index a 2D list-of-list-of-values with coordinates starting at [0 0]
sourceraw docstring

MapGrid2Dclj

source

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

× close