Clojure: Why is flatten “the wrong thing to use”
问题 I've read this kind of thing a couple of times since I've started Clojure. For instance, here: How to convert map to a sequence? And in some tweet I don't remember exactly that was more or less saying "if you're using flatten you're probably doing it wrong". I would like to know, what is wrong with flatten? 回答1: I think this is what they were talking about in the answer you linked: so> ((comp flatten seq) {:a [1 2] :b [3 4]}) (:b 3 4 :a 1 2) so> (apply concat {:a [1 2] :b [3 4]}) (:b [3 4] :a