brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

print-table of nested map #70

Closed awb99 closed 4 years ago

awb99 commented 4 years ago

Can I do something like

(print-table [ {:a {:b 1 :c 2} :d 3}  {:a {:b 4 :c 5} :d 6} ]
                  [ [:a :c]  :d] )

Result would be

:a :c     +  :d
+++++++++++++++
2         +  3
5         +  6

Nested maps are not supported by clojure.pprint/print-table And I didn't find any other lib that would allow me to do that.

brandonbloom commented 4 years ago

Fipp doesn't do table layouts and there are no plans to add support for it. Table layouts require arbitrary-lookahead to decide how wide to make columns. Such unbounded needs are at odds with this project's performance goals.