fix some bugs
This commit is contained in:
parent
aba77569ac
commit
98d6b1c865
|
@ -130,8 +130,12 @@
|
||||||
(string/join (map (fn [x] (-> x first show-patt)) clauses) "\n"))
|
(string/join (map (fn [x] (-> x first show-patt)) clauses) "\n"))
|
||||||
|
|
||||||
(defn doc [fnn]
|
(defn doc [fnn]
|
||||||
(def {:name name :doc doc} fnn)
|
(when (not= :fn (ludus/type fnn)) (break "No documentation available."))
|
||||||
(string/join [name (pretty-patterns fnn) doc] "\n"))
|
(def {:name name :doc docstring} fnn)
|
||||||
|
(string/join [name
|
||||||
|
(pretty-patterns fnn)
|
||||||
|
(if docstring docstring "No docstring available.")]
|
||||||
|
"\n"))
|
||||||
|
|
||||||
(defn- conj!-set [sett value]
|
(defn- conj!-set [sett value]
|
||||||
(set (sett value) true)
|
(set (sett value) true)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user