Re: destructuring / rest (was: Re: Counting vowels, take II.)

2010-03-24 Thread Meikel Brandmeyer
Hi, On Mar 24, 2:22 am, Douglas Philips d...@mac.com wrote: 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

Re: destructuring / rest (was: Re: Counting vowels, take II.)

2010-03-24 Thread Douglas Philips
On 2010 Mar 24, at 2:39 AM, Meikel Brandmeyer wrote: On Mar 24, 2:22 am, Douglas Philips d...@mac.com wrote: 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

destructuring / rest (was: Re: Counting vowels, take II.)

2010-03-23 Thread Douglas Philips
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