What You've Learned
This chapter didn’t really even come close to covering all of the features of the format function. However, it did provide an introduction, in which you learned the following:
The first parameter of the
formatcommand determines whether the output is sent to the REPL, a stream, or returned as a string.The second parameter of the
formatcommand is a control string that lets you change the way your data is printed. The control string has a sophisticated syntax, acting almost like a programming language in its own right.The remaining
formatparameters are values that can be referenced from the control string to embed values into the formatted output.To embed a Lisp value into a formatted string, use the
˜sor˜acontrol sequences. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access