fix some bugs

This commit is contained in:
Scott Richmond 2024-06-15 17:03:37 -04:00
parent aba77569ac
commit 98d6b1c865

View File

@ -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)