Skip to content

Instantly share code, notes, and snippets.

@jhrr jhrr/.sbclrc
Created Aug 25, 2015

Embed
What would you like to do?
;;; 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
You can’t perform that action at this time.