Joined November 2014
·

Michael Rubanov

Israel
·
·

Posted to Method arity in Clojure over 1 year ago

Same same but different :)

(defn  arg-count [f]
  {:pre [(instance? clojure.lang.AFunction f)]}
  (-> f class .getDeclaredMethods first .getParameterTypes alength))
Achievements
1 Karma
576 Total ProTip Views
Interests & Skills