On Fri, Mar 18, 2011 at 7:19 AM, Fiel Cabral <e4696wyoa63emq6w3250kiw60i4...@gmail.com> wrote: > public String loop_with_exception(int retries) > { > for (int n = retries; n > 0; n--) { > try { > return some_io_operation(); > } catch (IOException e) { > continue; > } > } > return null; > }
This is how I would solve the problem - https://gist.github.com/876136 Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- 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