Skip to content

Instantly share code, notes, and snippets.

@jhrr
Created August 25, 2015 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhrr/0edfc1d112f73f4dd4fd to your computer and use it in GitHub Desktop.
Save jhrr/0edfc1d112f73f4dd4fd to your computer and use it in GitHub Desktop.
;;; Better printing for hash tables
(set-pprint-dispatch 'hash-table
(lambda (str ht)
(format str "{~{~{~S => ~S~}~^, ~}}"
(loop for key being the hash-keys of ht
for value being the hash-values of ht
collect (list key value)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment