Created
January 21, 2019 23:05
-
-
Save 28/049d44c64e9264e25be632738378fb01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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