Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Jan 10th, 2013  |  syntax: Clojure  |  size: 0.16 KB  |  views: 89  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (defmacro safe [& arg-list] `(if (< (count ~arg-list) 2)
  2.         (try ~@arg-list (catch Exception e# e#))
  3.         (do ~arg-list (try (rest ~arg-list) (catch Exception e# e#)))))
clone this paste RAW Paste Data