0

I don't seem to remember that str returns a lazy sequence, yet the following:

(println (str "(" (map identity [1 2 3]) ")"))

produces the output:

(clojure.lang.LazySeq@7861)

and the following does not help

(println (doall (str "(" (map identity [1 2 3]) ")")))

This is stumping me so any help would be appreciated.

EDIT - to address difference from duplicate

My intent is not for printing but was using in problem determination where I found that the lazy-seq return was the source of issue. I need the string to be realized prior to being consumed down-stream.

Frank C.
  • 7,758
  • 4
  • 35
  • 45

0 Answers0