How to output tilde with FORMAT in Lisp? [closed]
Asked Answered
C

1

5

In Lisp FORMAT, all directives start with a tilde (~). If I just want to output string "~", how can I do that with FORMAT?

Calceiform answered 24/1, 2014 at 9:50 Comment(2)
The answer to this question is readily available via Google "lisp format", e.g., gigamonkeys.com/book/a-few-format-recipes.htmlTurfman
This question appears to be off-topic because it is answered directly in the documentation on format directive Tilde Tilde. (See this question on Meta: What should one do if they have a question that the answer is already on google?)Hominy
R
17
CL-USER 27 > (format t "~~")
~
NIL

CL-USER 28 > (format t "~10~")
~~~~~~~~~~
NIL
Remde answered 24/1, 2014 at 10:0 Comment(2)
Documentation link: 22.3.1.5 Tilde Tilde: Tilde.Hominy
Rainer explains it a lot better than the documentation.Buffum

© 2022 - 2024 — McMap. All rights reserved.