centering text in common lisp
-
03-07-2019 - |
Question
I have a string that I would like to print . Is it possible to center it when printing ?
Solution
Use the ~< formatting directive. This will return "hello there" centered within 70 columns.
(format nil "~70:@<~A~>" "hello there")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow