3 ms·
Nice article! I have one question for others though: Am I the only one who disagrees with ->> being easier to read? From the OP: (->> (set (concat
by dizzystar 14y ago
Nice article! I have one question for others though: Am I the only one who disagrees with ->> being easier to read?
From the OP:
(->>
(set (concat (keys map1) (keys map2)))
(map str)
sort)
And also from the OP:
(sort (map str (set (concat (keys map1) (keys map2)))))
I'm so used to reading Lisp "in to out" that I have a difficult using the thread-fast macro. I guess it depends on your background. Do those who have have a bit of Lisp experience agree with me?
- lispm 14y agoI'm used to read Lisp indented: (sort (map str (set (concat (keys map1) (keys map2)))))
- bengillies 14y agoI'm fairly new to Clojure, but am not new to bash (and its ilk), so tend to view the threading stuff as Clojure's version of bash's piping syntax (I realise they're not the same thing).
- jshen 14y agoI'm a lisper and I prefer the macro. I have no idea if I'm in the minority or the majority. I have to admit that I've written more clojure than any other lisp, but I learned other lisps before I ever learned clojure.