From 576fe1176e62294cb5c1a3bb0cccf157b2975fe1 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 20 Feb 2020 12:20:55 +0100 Subject: [PATCH] Gallery --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 79087f20..3426a7e7 100644 --- a/README.md +++ b/README.md @@ -947,6 +947,16 @@ See [examples/http_server.clj](https://github.com/borkdude/babashka/blob/master/ Original by [@souenzzo](https://gist.github.com/souenzzo/a959a4c5b8c0c90df76fe33bb7dfe201) +### Print random docstring + +``` shell +$ bb -o "(defmacro random-doc [] (let [sym (-> (ns-publics 'clojure.core) keys rand-nth)] \`(clojure.repl/doc ~sym))) (random-doc)" +------------------------- +clojure.core/keyword? +([x]) + Return true if x is a Keyword +``` + ## Thanks - [adgoji](https://www.adgoji.com/) for financial support