Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defrecord Canvas [map])
- (def canvas (Canvas. (take 40 (repeat (take 40 (repeat "0"))))))
- (defn join
- [x y]
- (format "%s\n%s" x y))
- (defn toView
- [canvas]
- (reduce join (map str (:map canvas))))
- (println (toView canvas))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement