(defexample* k & args)

Like defexample, but a function instead of a macro

Spec

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

Source

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