This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-04
Channels
- # announcements (8)
- # beginners (27)
- # calva (8)
- # cider (26)
- # clara (19)
- # cljdoc (4)
- # cljsjs (1)
- # clojure (221)
- # clojure-dev (6)
- # clojure-europe (11)
- # clojure-gamedev (18)
- # clojure-italy (8)
- # clojure-nl (12)
- # clojure-spec (85)
- # clojure-uk (17)
- # clojurescript (34)
- # community-development (1)
- # cursive (26)
- # datomic (16)
- # dirac (19)
- # duct (6)
- # editors (4)
- # figwheel-main (1)
- # fulcro (68)
- # graphql (41)
- # juxt (16)
- # luminus (11)
- # off-topic (30)
- # pathom (35)
- # planck (2)
- # re-frame (18)
- # reagent (20)
- # remote-jobs (6)
- # rum (1)
- # shadow-cljs (37)
- # spacemacs (9)
- # vim (14)
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"
You are right, it was the repl. It becomes obvious with (seq (transduce (interpose "\n") str [" a" " b" " c"]))