(defexamples* k & examples)

Like defexamples, but a function instead of a macro

Spec

(clojure.spec.alpha/fspec :args :dynadoc.example/examples :ret clojure.core/any? :fn nil)

Source

(defn defexamples* "Like defexamples, but a function instead of a macro" [k & examples] (let [[ns-sym k] (parse-keys k)] (swap! registry-ref assoc-in [ns-sym k] (mapv parse-example examples)) nil))