Stu, On Mon, Jun 7, 2010 at 13:08, Stuart Halloway <stuart.hallo...@gmail.com> wrote: > That doc page used pre-1.0 Clojure code, which, as you saw, doesn't work. > Thanks for the catch, I have fixed the docs on the site.
Thanks. I think my mistake was mixing up rest (which always returns a sequence even if empty) and next (which returns nil if there is nothing left in the sequence). My code works now. I'm not sure if it is any good yet, but it is at least working. :-D cheers, Bruce -- 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