Prev: Algorithms and Data Structures Query
Next: You may now close down all other Lisp web frameworks
From: Haris Bogdanovi� on 21 Jun 2010 05:39 How to escape " character in format ? (format t "~a" (random 100)) I want to get " character around that random number ? Thanks
From: Rupert Swarbrick on 21 Jun 2010 05:49 "Haris Bogdanoviæ" <fbogdanovic(a)xnet.hr> writes: > How to escape " character in format ? > (format t "~a" (random 100)) > I want to get " character around that random number ? Try (format t "\"~A\"" (random 100)) Of course, since it's a number, you might want want to use ~D instead of ~A. Also, if you're outputting to the terminal, you probably want a newline afterwards, which is ~%. Rupert
From: Thomas A. Russ on 21 Jun 2010 13:53 "Haris Bogdanovi��" <fbogdanovic(a)xnet.hr> writes: > How to escape " character in format ? > (format t "~a" (random 100)) > I want to get " character around that random number ? It isn't format-specific. You just use the general string escape character backslash (\): "\"~a\"" -- Thomas A. Russ, USC/Information Sciences Institute
|
Pages: 1 Prev: Algorithms and Data Structures Query Next: You may now close down all other Lisp web frameworks |