Closed vindarel closed 3 years ago
I merged this with two changes:
(toggle-pretty-print-hash-table)
directly.toggle-pretty-print-hash-table
to use set-pprint-dispatch
instead of evaluating a defmethod
. I think this way is cleaner.@vseloved you might be interested by set-pprint-dispatch instead of using defmethod for pretty-printing hash-tables. Best,
fixes #75
Given that I reverted my changes from the issue snippet, that made it work more nicely in a readline REPL, this is a straightforward adaptation from RUTILS (3-clause MIT). Thanks, Rutils!