The best solution using the API that I could come up with would be something like
(doseq r (take-while identity (repeatedly #(side-effects with many args))) (pr r)) It's useful in the situation where 1. You have a function which can return different values when invoked with the same arguments, and 2. You want to call a function multiple times strictly for its side effects (since while returns nil). The more functional one's code is, the less likely it is that either of these conditions will be true. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---