Slide 8.d: COND Slide 8.f: Programming Exercise II: calculating a string expression Home |
(DEFUN function_name parameter_list function_body )where:
function_name
is an identifier, as an atom;
parameter_list
is a list (possibly empty) of identifiers, as a list of atoms; and
function_body
is an S-expression representing the body of the function.
A
and a list of atoms LAT
, the following code determines whether A
occurs in LAT
:
check( )
is the same as the Lisp built-in function MEMBER.
The following error message will be displayed if the you try to redefine the MEMBER
by replacing check( )
by member( )
:
** - Continuable Error DEFUN/DEFMACRO(MEMBER): #is locked If you continue (by typing 'continue'): Ignore the lock and proceed