The LET Construct

The LET construct allows the programmer to declare local variables for temporary use and execute multiple forms within the scope of the variable bindings.

(LET  ( < variables>  )

       < statement-1> 
       < statement-n>   )

The < variables> are initially bound to NIL when the LET is entered; their values may be changed using SETQ.

Variables may be initialized to values other than NIL by specifying a pair, (< var> < init-form> ), in the list of variables.

The value of the LET is the value of < statement-n> , which could be just a variable name.

Contents    Page-10    Prev    Next    Page+10    Index