Hi!

On Wed, Oct 14, 2009 at 4:54 PM, Meikel Brandmeyer <m...@kotka.de> wrote:

> Your original question can be done with for also:
>
> (defn matching-elements-x
>  [s1 s2]
>  (for [[e1 e2] (partition 2 (interleave s1 s2)) :when (= e1 e2)]
>    e1))
>

(partition 2 (interleave s1 s2)) can be written (map vector s1 s2)

Christophe

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