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

Change the color of an oval at click in Java AWT -

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -