Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defrecord Canvas [map])
  2.  
  3. (def canvas (Canvas. (take 40 (repeat (take 40 (repeat "0"))))))
  4.  
  5. (defn join
  6.   [x y]
  7.   (format "%s\n%s" x y))
  8.  
  9. (defn toView
  10.      [canvas]
  11.      (reduce join (map str (:map canvas))))
  12.  
  13. (println (toView canvas))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement