1 2 3 4 5 6 7 8
(ns dionysus.utils) (defn try-parse-int ([s default] (try (Integer/parseInt s) (catch Exception _ default))) ([s] (try-parse-int s nil)))