common-lisp format

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

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.



Got any common-lisp Question?