amoroso Suppose I want to print multiple copies of a character, such as printing # 20 times in a row: #################### In other words, something like the Python idiom print('#' * 20). Is it possible to do it in Common Lisp using only format?
marcuskammer It is possbile: (format t "~v{~a~:*~}~%" 20 '(#\#)) But hard to read. (as usual for format) An alternative could be: (format t "~a~%" (coerce (loop repeat 20 collect #\#) 'string))