Lecture overview -- Keyboard shortcut: 'u'  Previous page: The equivalent meaning of <span>let</span> -- Keyboard shortcut: 'p'  Next page: The <span>let*</span> name binding construct -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 1 - Page 38 : 49
Programming Paradigms
Introduction to Functional Programming in Scheme
The let* name binding construct

It is often useful to be able to use previous name bindings in a let construct, which binds several names


(let* ((n<sub>1</sub> e<sub>1</sub>) ... (n<sub>i-1</sub> e<sub>i-1</sub>) (n<sub>i</sub> e<sub>i</sub>) ... (n<sub>k</sub> e<sub>k</sub>)) body-expr)

  • Characteristics of let*:

    • It is possible to refer to n1 through ni-1 from the expression ei

    • Syntactic sugar for k nested let name bindings