Hi, On 24 Jan., 13:59, László Török <ltoro...@gmail.com> wrote:
> just a quick one: > > (mapcat #([% 1]) [1 3 5]) > > gives an exception (wrong argument) > > (mapcat (fn [a] [a 1]) [1 3 5]) > > works though... > > What did I get wrong? #([% 1]) is equivalent to (fn [a] ([a 1])). Note the extra parens. You want #(vector % 1). Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en