format - Help with printing a table
- by Michael Kohl
This question will probably end in a facepalm, but I've tried for a while and am still stuck despite reading through the hyperspec.
Basically what I want to do is something like
(format t "~{|~{ ~5d~}|~%~}" '((1 23 2 312) (23 456 1 7890)))
but instead of hard-coding the 5 it should be calculated from the list (length of longest element from any nested list + 1) to give something like
| 1 23 2 312|
| 23 456 1 7890|
Maybe I'm thinking way too complicated here and there is an easier way to do what I want, but I think I ran myself into a mental corner that I can't get out of.