(gather-fact zloc)Make docstring notation out of fact form (-> "^{:refer example/hello-world :added "0.1"} (fact "Sample test program"\n (+ 1 1) => 2\n (long? 3) => true)" (z/of-string) z/down z/right z/down z/right (gather-fact) :test common/join-nodes) => "\n (+ 1 1) => 2\n (long? 3) => true"
Make docstring notation out of fact form
(-> "^{:refer example/hello-world :added \"0.1\"}
(fact \"Sample test program\"\n (+ 1 1) => 2\n (long? 3) => true)"
(z/of-string)
z/down z/right z/down z/right
(gather-fact)
:test
common/join-nodes)
=> "\n (+ 1 1) => 2\n (long? 3) => true"(gather-fact-body zloc)(gather-fact-body zloc output)helper function for gather-fact
(-> "("Sample test program"\n (+ 1 1) => 2\n (long? 3) => true)"
z/of-string
z/down
(gather-fact-body)
common/join-nodes)
=> ""Sample test program"\n (+ 1 1) => 2\n (long? 3) => true"
helper function for `gather-fact`
(-> "(\"Sample test program\"\n (+ 1 1) => 2\n (long? 3) => true)"
z/of-string
z/down
(gather-fact-body)
common/join-nodes)
=> ""Sample test program"\n (+ 1 1) => 2\n (long? 3) => true"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 |