2 (defun max-width (&rest nums
)
4 :maximize
(length (princ-to-string x
))))
6 (defun output-tuple (u &optional
(strm t
))
7 (format strm
"(~{~D~#[~:;, ~]~})" u
))
9 (defun output-matrix (mat &optional
(strm t
))
12 :with widths
= (apply #'mapcar
#'max-width mat
)
19 (format strm
"~V,@A " (car width
) elem
)
20 :else
:do
(format strm
"~V,@A]~%" (car width
) elem
))))