Of course!  I keep making stupid mistakes like this....arghhhh!!!

On Mar 24, 9:28 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> On Mar 24, 2:21 pm, Glen Rubin <rubing...@gmail.com> wrote:
>
> > (loop [x 1 y (first (tri-nums))]
> > ...
> >    (recur (inc x) (first (rest (tri-nums))))
>
> You call tri-nums twice. So you get fresh seqs each time. You have to
> work on a single seq.
>
> (loop [counter 1
>        tris    (tri-nums)]
>   (let [t (first tris)]
>     (cond
>       ...
>       ... (recur (inc counter) (next tris))
>       ...)))
>
> Sincerely
> Meikel

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