On Fri, Feb 6, 2009 at 1:19 PM, Konrad Hinsen <konrad.hin...@laposte.net>wrote:

>
> The doc string of apply says:
>
>        ([f args* argseq])
>        "Applies fn f to the argument list formed by prepending args to
> argseq."
>
> This looks like I could pass in several argument PLUS one sequence of
> arguments, which just happens to be what I want in a specific case.
> But it doesn't seem to work.
>
> I looked at the definition of apply, which uses an undocumented
> private function spread whose purpose and result I don't quite
> understand.
>
> Can anyone give an example of how the argseq argument can be used?
>
> Konrad.
>

This seems to work correctly:

user> (apply + 1 2 3 [4 5])
15

Is that what you're looking for?

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