Okay, comp on its own is not comparable to ->, good point.  Once you
add partial, I think a more direct comparison is possible.

(let [& comp
      p partial
 ((&
    (p filter predicate)
    (p map function)
    (p remove other-predicate))
   some-seq))

This is a lot closer to the new ->>.

Anyway, I see now what the main point is.  The main point is where
does the data go?  I like ->> putting data in the end is a huge step
forward.  It makes the libraries designed to use it more flexible,
because it supports both coding styles.

On Oct 17, 7:52 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi.
>
> Am 17.10.2009 um 13:25 schrieb James Reeves:
>
> > Well, defining the "most important argument" can be tricky. However,
> > it would be nice if there were map and filter variants that could be
> > used with ->.
>
> There is also ->>.
>
> (->> some-seq
>    (filter predicate)
>    (map function)
>    (remove other-predicate))
>
> Sincerely
> Meikel
>
>  smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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