clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
2019-04-04T10:01:55.009300Z

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"

bronsa 2019-04-04T10:03:04.009500Z

[~]> 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"

bronsa 2019-04-04T10:03:07.009700Z

which repl are you using?

2019-04-04T10:03:32.009900Z

nrepl

bronsa 2019-04-04T10:03:39.010100Z

probably an artifact of your repl then

2019-04-04T10:05:33.010900Z

You are right, it was the repl. It becomes obvious with (seq (transduce (interpose "\n") str [" a" " b" " c"]))