Jump to content

Optional parameters: Difference between revisions

Line 173:
=={{header|Common Lisp}}==
 
Common Lisp has both named and positional parameters. The following example shows optional named parameters, using the <code>&key</code> keyword. Optional positional parameters are specified using the <code>&optional</code> keyword.
 
<lang lisp>(defun sort-table (table &key (ordering #'string<)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.