Clojure printing lazy sequence
问题 I'm trying to print out my binary tree but Clojure is giving me a hard time printing out the sequences properly. So, I have a list of nodes '(1 2 3) for example. In each iteration I want to print out the node with a number of spaces before and after each element. (defn spaces [n] (apply str (repeat n " "))) Great, this seems to work. So, suppose I have a list of nodes '(:a :b :c) I want to print out on one line, with as said, the spaces. (println (map #(str (spaces before) % (spaces (dec