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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -