On Apr 6, 5:23 pm, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> Have you seen destructuring of rest args in the current master branch?
>
> (defn foo [& {:keys [a b c]}] [a b c])
>
> (foo :a 1 :c 3)
> => [1 nil 3]
>
> With this last bit of sugar in place I am extremely happy with  
> Clojure's arg handling.

Hmmm. Looks nice, but if these are optional, any-order keys
  - is there a run-time cost to construct / deconstruct / lookup?
  - how do I use foo in apply, comp, and friends?

Thanks!

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to