+1

On Aug 19, 11:02 pm, Stuart Sierra <the.stuart.sie...@gmail.com>
wrote:
> On Aug 19, 9:56 pm, CuppoJava <patrickli_2...@hotmail.com> wrote:
>
> > If I were to have my way, I would redefine all the clojure.core
> > functions to assume the "data" is the last argument instead of the
> > first. (this includes ->) This way they would play nice with both
> > partial and ->.
>
> That's a really interesting idea.  What happens if:
>
> (defmacro last->
>   ([x form] (if (seq? form)
>               (concat form (list x))
>               (list form x)))
>   ([x form & more] `(last-> (last-> ~x ~form) ~...@more)))
>
> -SS
--~--~---------~--~----~------------~-------~--~----~
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