On Oct 29, 4:03 am, Andrew Gwozdziewycz <apg...@gmail.com> wrote: > I'd hoist the empty out of the cond using an if: > > (if (empty? ps) > ret > (let [fps (first (first ps))] > (cond > ...)))
Yeah, I thought about it, but it is still a bit verbose, especially with a 3 conditions loop. I mean, when you have only 3 lines in cond (and this is the most frequent case for me), adding 3 new lines to reduce... well, acceptable, but not in all cases. -- 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