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

前端 未结 3 1520
终归单人心
终归单人心 2021-01-18 07:27

I am new to common lisp. Is there a CL library to pretty print collections, in my case, nested hash tables?

3条回答
  •  情书的邮戳
    2021-01-18 07:49

    First, CL does not have a "collection" type.

    Second, some (most?) CL implementations will print hash tables with content if you set *print-array* to t.

    Third, if your CL implementation does not do that, you can easily whip up your own, based on, say, hash-table->alist.

提交回复
热议问题