Jonas <jonas.enl...@gmail.com> writes: Hi Jonas,
>> > `:while` on the other hand ends the list comprehension when the >> > test evaluates to false (or nil) and returns the sequence generated >> > thus far. >> >> No, it's perfectly possible to have a comprehension with a :while >> that generates more elements after :while evaluated to false. :while >> skips some bindings, but it doesn't need to skip all of them. See my >> original reply to Nicolas. > > Thanks for pointing that out. I realize now that my understanding of > the `for` macro is not complete. I wonder if complex `for`-expressions > hurt code readability or is the alternative (using map+filter) even > more complicated? IMO, `for` provides a very concise and readable syntax for a rather complicated thing. Doing that with map/filter/closures by hand is much more complicated and verbose. And with the exception of :while, it's easy to understand. So I don't want to miss it. Bye, Tassilo -- 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