I prefer map for turning one sequence into another sequence of equal
length.  I generally only use for when I need a cartesian product of
multiple sequences, or am going to leverage :let, :when, or :while in
the binding.

On Jun 28, 11:48 am, Oleg <oleg.richa...@gmail.com> wrote:
> I will show example based on hiccup library:
>
> For version: [:ol (for [x coll] [:li x])]
> Map version: [:ol (map (fn [x] [:li x]) coll)]
>
> What's the difference between them? What is better for performance?
>
> Cheers, Oleg

-- 
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

Reply via email to