Stats

120 Contributors: 5
2016-08-02
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

format

Download common-lisp eBook

Parameters

Lambda-List(format DESTINATION CONTROL-STRING &REST FORMAT-ARGUMENTS)
DESTINATIONthe thing to write to. This can be an output stream, t (shorthand for *standard-output*), or nil (which creates a string to write to)
CONTROL-STRINGthe template string. It might be a primitive string, or it might contain tilde-prefixed command directives that specify, and somehow transform additional arguments.
FORMAT-ARGUMENTSpotential additional arguments required by the given CONTROL-STRING.

Remarks

The CLHS documentation for FORMAT directives can be found in Section 22.3. With SLIME, you can type C-c C-d ~ to look up the CLHS documentation for a specific format directive.

Related Examples