Calls no-matching-function-signature if no match is found for the given
function. If no argslist meta data is available for the function, it is
not called.
(defn has-matching-signature?
"Calls no-matching-function-signature if no match is found for the given
function. If no argslist meta data is available for the function, it is
not called."
[fn-name args]
(let [arg-count (count args)
arg-lists (:arglists (meta (resolve fn-name)))]
(if (and arg-lists (not (has-arg-count-match? arg-lists arg-count)))
(no-matching-function-signature fn-name arg-lists args))))
Comments top
No comments for has-matching-signature?. Log in to add a comment.