Created
August 25, 2015 19:03
-
-
Save jhrr/0edfc1d112f73f4dd4fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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