• (function-matcher & functions)
Creates a tester that whitelists functions.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/licenser/sandbox/matcher.clj:3 top

(defn function-matcher
  "Creates a tester that whitelists functions."
  [& functions]
  (fn [form]
    (if (= (type form) clojure.lang.Var)
      (map (partial = (:name (meta form))) functions)
      (map (partial = form) functions))))
Vars in net.licenser.sandbox.matcher/function-matcher: = defn fn map meta partial type
Used in 0 other vars

Comments top

No comments for function-matcher. Log in to add a comment.