[gmail is freaking out, apologies if this is sent twice] On Thu, Jan 28, 2010 at 12:23 PM, DanL <leidis...@gmail.com> wrote: > When exactly would a lazy sequence evaluate to false?
i thought it was happening with code like: (let [final-answer (and (map #(= "foo" %) ["foo" "bar"]))] (if final-answer "yay" "humbug")) in a larger routine. it wasn't doing what i expected from my tests, and when i put in a println then it suddenly worked. which led me to figure it was something about laziness. changing the if to read (if (vec final-answer) ...) fixed it. ? -- 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