(gather-meta zloc)gets the metadata for a particular form (-> (z/of-string "^{:refer clojure.core/+ :added "0.1"}\n(fact ...)") z/down z/right z/down gather-meta) => '{:added "0.1", :ns clojure.core, :var +, :refer clojure.core/+}
gets the metadata for a particular form
(-> (z/of-string "^{:refer clojure.core/+ :added \"0.1\"}\n(fact ...)")
z/down z/right z/down
gather-meta)
=> '{:added "0.1", :ns clojure.core, :var +, :refer clojure.core/+}(gather-string zloc)creates correctly spaced code string from normal docstring
(-> (z/of-string ""hello\nworld\nalready"") (gather-string) (str)) => ""hello\n world\n already""
creates correctly spaced code string from normal docstring
(-> (z/of-string "\"hello\nworld\nalready\"")
(gather-string)
(str))
=> ""hello\n world\n already""(strip-quotes s)takes away the quotes from a string for formatting purposes
(strip-quotes ""hello"") => "hello"
takes away the quotes from a string for formatting purposes (strip-quotes "\"hello\"") => "hello"
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |