Skip to content

Instantly share code, notes, and snippets.

@WetHat
Last active September 29, 2023 00:53
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save WetHat/9682b8f70f0241c37cd5d732784d1577 to your computer and use it in GitHub Desktop.
Save WetHat/9682b8f70f0241c37cd5d732784d1577 to your computer and use it in GitHub Desktop.
Pretty Print Tree Data Structures in Common Lisp
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WetHat
Copy link
Author

WetHat commented Feb 20, 2020 via email

@WetHat
Copy link
Author

WetHat commented Feb 20, 2020

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

@vseloved
Copy link

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