Print white spaces

Discussion of Common Lisp

Print white spaces

Postby aedsferrao » Wed Nov 16, 2011 7:06 am


I have another question, how can i print white spaces??

I need to print this

Code: Select all
O   *   O
*X  O*  ****
**X  **O  O**

Thank you.
Last edited by nuntius on Wed Nov 16, 2011 10:11 pm, edited 1 time in total.
Reason: add code tag
Posts: 3
Joined: Tue Nov 08, 2011 1:04 pm

Re: Print white spaces

Postby nuntius » Wed Nov 16, 2011 10:10 pm

string literal: (print " ")

character literal: (format t "~A" #\Space)
User avatar
Posts: 532
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 3 guests