On Fri, Mar 18, 2011 at 7:19 AM, Fiel Cabral <[email protected]> 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
