Skip to content

Instantly share code, notes, and snippets.

@28
Created January 21, 2019 23:05
Show Gist options
  • Select an option

  • Save 28/049d44c64e9264e25be632738378fb01 to your computer and use it in GitHub Desktop.

Select an option

Save 28/049d44c64e9264e25be632738378fb01 to your computer and use it in GitHub Desktop.
(defn maze [n]
(->> (repeatedly (* n n) #(rand-nth "╱╲"))
(partition n)
(transduce
(comp
(map #(apply str %))
(interpose "\n"))
str)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment