Last active
January 14, 2025 21:23
-
-
Save WetHat/9682b8f70f0241c37cd5d732784d1577 to your computer and use it in GitHub Desktop.
Pretty Print Tree Data Structures in Common Lisp
You might be interested in this post: http://lisp-univ-etc.blogspot.com/2017/04/pretty-printing-trees.html
Hi Vsevolod,
Thanks for the link. Very nice post!. I also like your Lisp blog. I’ve put a number of your posts on my reading list.
In your post you state:
_“I, in fact, was always interested in creative ways of text-based visualization.”_
Then, maybe you find this interesting too: svgbob<https://ivanceras.github.io/md/Svgbob.md>. This tool transforms ASCII art into svg images. At first glance a hilarious idea, but I found that this is sometimes quite handy. The GitHub project is here: https://github.com/ivanceras/svgbob
Peter
Hi lispm,
Your suggestions are very much appreciated! I'll look into them as soon as I can.
- you can get rid of the (APPLY #'NCONC ...) if you APPEND in the LOOPs, instead of COLLECT.
- it's usually better to put a WITH clause before all the FOR clauses
- one can also write FOR (head . tail) ON lower-children
Thanks for the pointer to svgbob. I'm collecting such references. A great list of different ASCII and similar visualization tools is crowdsourced here: https://twitter.com/SusanPotter/status/1189165775275331584
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's nice! Well done!
Btw.:
you can get rid of the (APPLY #'NCONC ...) if you APPEND in the LOOPs, instead of COLLECT.
it's usually better to put a WITH clause before all the FOR clauses
one can also write FOR (head . tail) ON lower-children