Documentation commands
*save-doc-strings* is true. The default value of this variable is false.The following function definition includes a documentation string. The exact placement of the documentation string varies among different types of definitions. Check the Common Lisp specification for details.
(defun fact (number)
"Returns the factorial of a number."
(if (= 0 number)
1
(* number (fact (- number 1)))))
There are three ways to retrieve the documentation of a definition:
documentation, which takes a symbol as its first argument and a documentation type as its second argument. It returns the documentation string of that type for the symbol if one exists. The second argument should be function or type. See the Common Lisp documentation for details.
Generated with Harlequin WebMaker