(ascii->VecGrid2D charmap lines)
Convert an ASCII represention of a 2D grid into a VecGrid2D.
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 VecGrid2D. 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})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close