KitApps / schema-refined

Clojure library to keep you away from bugs with precise schemas (refined types with runtime checks)
MIT License
67 stars 2 forks source link

Function predicate to ensure that the function given supports 1-arity #19

Open kachayev opened 6 years ago

kachayev commented 6 years ago

In Java it requires reflection, but still...

(->> f class .getDeclaredMethods (map #(alength (.getParameterTypes %))))