Common Lisp Library for Pretty Printing? e.g. pretty print a nested hash table -


i new common lisp. there cl library pretty print collections, in case, nested hash tables?

if consider writing here starting point using print-object. not implementation independend, works @ least in lispworks , sbcl.

(defmethod print-object ((object hash-table) stream)   (format stream "#hash{~{~{(~a : ~a)~}~^ ~}}"           (loop key being hash-keys of object                 using (hash-value value)                 collect (list key value)))) 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -