Lecture overview -- Keyboard shortcut: 'u'  Previous page: Examples with  <kbd>let</kbd>  name binding -- Keyboard shortcut: 'p'  Next page: An example with <kbd>let*</kbd> -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home    Lecture 3 - Page 5 : 42
Functional Programming in Scheme
Name binding, Recursion, Iteration, and Continuations
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* ((n1 e1)
       (ni-1 ei-1)
       (ni ei)
       (nk ek))

  • 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