This commit is contained in:
Michiel Borkent 2020-02-20 12:40:18 +01:00
parent 576fe1176e
commit b66c14fec6

View file

@ -950,7 +950,7 @@ Original by [@souenzzo](https://gist.github.com/souenzzo/a959a4c5b8c0c90df76fe33
### Print random docstring ### Print random docstring
``` shell ``` shell
$ bb -o "(defmacro random-doc [] (let [sym (-> (ns-publics 'clojure.core) keys rand-nth)] \`(clojure.repl/doc ~sym))) (random-doc)" $ bb "(defmacro random-doc [] (let [sym (-> (ns-publics 'clojure.core) keys rand-nth)] \`(clojure.repl/doc ~sym))) (random-doc)"
------------------------- -------------------------
clojure.core/keyword? clojure.core/keyword?
([x]) ([x])