On 20 March 2010 13:05, WoodHacker <ramsa...@comcast.net> wrote: > What's going on? And how do I fix it? Adding a :when to test for > nil does not seem to do anything.
You'll want to use 'doseq' in place of 'for'. It uses exactly the same syntax as for, but is used solely for side effects (the return value is nil). In contrast, for is a sequence comprehension, meaning that it is to be used primarily for the purpose of building up a sequence of values (like the nils your printlns return). Check out (doc for) and (doc doseq) for more details. Sincerely, Michał -- 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.