atkaaz, you can do this: (fn [& {:keys [arg1 arg2 arg3]}] ...)

On Mon, May 6, 2013 at 10:03 PM, AtKaaZ <atk...@gmail.com> wrote:

> I agree, I'm not sure what he means xD
> If you ask me, I'd rather have each arg be identified by a keyword instead
> of by order
> like: (somefn :arg1 "somestr" :arg3 100 :arg2 (+ 1 2))
> or all those in a map
> I'll probably still do that for me, so that any function will take params
> like this. There's probably a way this can be done but it's not good enough
> for me, was it with :keys and :as map ?
>
>
>
> On Sun, May 5, 2013 at 10:52 PM, Alex Fowler <alex.murat...@gmail.com>wrote:
>
>> Tell us more about it.
>>
>>
>> On Sunday, May 5, 2013 11:54:32 AM UTC+4, JvJ wrote:
>>>
>>> Is anyone else tripped out when they realize that when you write args
>>> for a function.... you're basically just destructuring an arg vector?  It
>>> trips me out.
>>
>>  --
>> --
>> 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/groups/opt_out.
>>
>>
>>
>
>  --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to