Closed ribcakes closed 10 years ago
Hey Brian! defnp
doesn't support the multi-arity case because:
(defnp hi
([] (p :nullary-case "hi"))
([name] (p: unary-case (str "hi" name))))
This should be documented though; thought it was. Will update shortly so thanks for the report!
Hope that helps? Cheers :-)
When trying to wrap a multiple arity function with defnp, an error is returned, e.g:
More information: