Given the setup that you provided, using apply is a perfectly valid answer. 
What are the complicating factors that prevent you form using it? Could you 
give us an example that's closer to your use case?

On Monday, 5 November 2012 13:35:41 UTC, cej38 wrote:
>
> No, you don't.  I want a command that works INSIDE of f not ON f.  The 
> function that I gave earlier was something overly simple.
>
>
> On Monday, November 5, 2012 12:46:24 AM UTC-5, Jerry Peng wrote:
>>
>> If I understand your problem correctly, you could use `apply`.
>>
>> user=> (defn f [w x y z] (+ w x y z))
>> #'user/f
>> user=> (f 1 2 3 4)
>> 10
>> user=> (apply f [1 2 3 4])
>> 10
>>
>>
>>
>> -- 
>> Jerry Peng
>>
>>
>>  

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