I am looking for something like:
(printem 1 2) 1 2 I assume you do this with a format call, but the examples don't focus on this. Or maybe you write to a string and output that? But that doesn't seem right either.
In Common Lisp you can write:
(format t "~d ~d~%" 1 2) See A Few FORMAT Recipes from Peter Seibel's Practical Common Lisp (other chapters might interest you too).
You can simply build a function that prints all its arguments by the iteration construct of format.
(defun printem (&rest args) (format t "~{~a~^ ~}" args)) Usage:
CL-USER> (printem 1 2 3) 1 2 3 CL-USER> (printem '(1 2 3) '(4 5 6)) (1 2 3) (4 5 6)
'before numbers? Non-cons values (atoms) evaluate to themselves.