This isn’t only an optimisation but also a change in behaviour, isn’t
it?

Clojure 1.9.0-alpha3:

user=> (let [[x & xs] #{1 2 3}] x)
UnsupportedOperationException nth not supported on this type: 
PersistentHashSet  clojure.lang.RT.nthFrom (RT.java:948)

Clojure 1.9.0-alpha4:

user=> (let [[x & xs] #{1 2 3}] x)
1

Perhaps the documentation needs to be updated?
http://clojure.org/reference/special_forms#_vector_binding_destructuring


-- 
David

-- 
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/d/optout.

Reply via email to