Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro get-default [type]
- `(~(symbol (str type ".")) ~@(repeat (min-items (eval type)) nil)))
- (defn min-items [type]
- (apply min (map #(-> % .getParameterTypes count)
- (.getConstructors type))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement