Amith George <strider...@gmail.com> writes:

>> That's not the same function as #(last (sort %&))
>> The equivalent would be (comp last sort vec)
>
> Could you please explain why is the `vec` needed?  From what I
> understand, we are expected to treat the variadic args argument as a
> seq, nothing more.

With ((comp last sort) 3 2 1), sort will be called as

  (apply sort (list 3 2 1))

which essentially is

  (sort 3 2 1).

Hovever, sort is no varargs function but wants a collection.

Bye,
Tassilo

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to