clojure.spec adds documentation to function definitions

Using doc to show the spec

  1. (ns practicalli.clojure
  2. (:require [clojure.repl :as repl]
  3. [clojure.spec.alpha :as spec]))
  1. (repl/doc map)

(clojure.repl/doc :playing-card/suit)

prints in the REPL buffer: :playing-card/suit

Spec

  1. #{:spade :heart :diamond :club}
  1. (repl/doc :cat-show:cat-bread)