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 wrote:
> S
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 wrote:
> I happened to be looking at the sou
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