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
Post a Comment