clojure.spec adds documentation to function definitions
Using doc to show the spec
(ns practicalli.clojure
(:require [clojure.repl :as repl]
[clojure.spec.alpha :as spec]))
(repl/doc map)
(clojure.repl/doc :playing-card/suit)
prints in the REPL buffer: :playing-card/suit
Spec
#{:spade :heart :diamond :club}
(repl/doc :cat-show:cat-bread)
当前内容版权归 practicalli 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 practicalli .