Of course! I keep making stupid mistakes like this....arghhhh!!! On Mar 24, 9:28 am, Meikel Brandmeyer <[email protected]> wrote: > Hi, > > On Mar 24, 2:21 pm, Glen Rubin <[email protected]> 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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.
