On Fri, Jan 25, 2013 at 5:38 PM, Alan Malloy <a...@malloys.org> wrote:
> In (let [[x :as y] [1 2]]), there is already an object to make y "point to":
> the vector [1 2]. in ((fn [x :as y]) 1 2), there is no such object.

There's no such object for y to be the tail of in ((fn [x & y] y) 1 2
3), either, but the remaining arguments get accumulated in y
regardless. They even get accumulated in a map in ((fn [& {:as m}] m)
:x 1 :y 2).

-- 
Ben Wolfson
"Human kind has used its intelligence to vary the flavour of drinks,
which may be sweet, aromatic, fermented or spirit-based. ... Family
and social life also offer numerous other occasions to consume drinks
for pleasure." [Larousse, "Drink" entry]

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