On 2010 Mar 23, at 4:13 PM, Meikel Brandmeyer wrote:
       (let [[s1 & s1tail]   seq1
In the above destructuring the first element of s1tail is also realised.
That is what I mean with "one step ahead". I'm not sure why it is done
like this. I does not seem necessary. But I'm not an expert in the
destructuring code…

would (let [s1 (first seq1)
            s1tail (rest seq1)] ...)
be any better? rest says it calls seq on its argument, and that would force as well? Hmmm... So only things like map are able to realize first without realizing (first (rest seq1)) too?

-D

--
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 from this group, send email to clojure+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to