Awesome @whatacold! Thanks for sharing!
Thanks for the kind words, and I also made this into a blog post for better reading: https://whatacold.io/blog/2021-08-07-illustrate-clojure-snippet/
@lee By standing on your shoulder, I finally make my babashka script work, thanks so much! Here is the script: https://github.com/whatacold/babashka-tools/blob/master/illustrate.clj
Aside from rewrite-clj, I learned two things from you code:
1. Keep the number of bindings of loop as less as possible, one binding is best, so that this is little for recur to care about.
2. The [...] part of let is a good place to put some logic, so that the body part could be simple and clean.