Hi Alan,

this is one of the places where clojure.core is not written in what I
would called idiomatic Clojure. The reason is speed. Rich Hickey is
very eager to speed up the libraries, and what you see in juxt is one
of the verbose speedup tricks.

Regards, alux

On 8 Sep., 20:06, Alan <a...@malloys.org> wrote:
> Sorry, Google posted this before I was done. Anyway, it looks like:
>
> (defn juxt
>   ([f g h & fs]
>     (let [fs (list* f g h fs)]
>       ...)))
>
> Is there a reason to do that instead of the following?
>
> (defn juxt
>   ([& fs]
>     ...))
>
> On Sep 8, 11:02 am, Alan <a...@malloys.org> wrote:
>
> > I happened to be looking at the source for clojure.core/juxt, and I
> > was a little surprised by the way it handles 4+ arguments

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