Pretty Print Tree Data Structures in Common Lisp
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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