I spotted a very strange behaviour with strings on Clojure 1.10.0
(transduce (map identity) str [" a" " b" " c"])
; => " a b c"
(transduce (interpose "\n") str [" a" " b" " c"])
; => " a\nb\nc"
[~]> clj
Clojure 1.11.0-master-SNAPSHOT
user=> (transduce (map identity) str [" a" " b" " c"])
" a b c"
user=> (transduce (interpose "\n") str [" a" " b" " c"])
" a\n b\n c"
which repl are you using?
nrepl
probably an artifact of your repl then
You are right, it was the repl. It becomes obvious with (seq (transduce (interpose "\n") str [" a" " b" " c"]))