National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: Local Functions Up: Control Structures Previous: Conditionals

Sequencing and Lets

  prog1 form1 &rest forms [function]

  progn {form}* [special]   setf {access-form value}* [macro]   let ({var | (var [value])}*) {declare}* {form}* [special]
  • introduces local variables. All values are evaluated and assigned to vars in parallel, i.e., (let ((a 1)) (let ((a (1+ a)) (b a)) (list a b))) produces (2 1).
  let* ({var | (var [value])}*) {declare}* {form}* [special]
  • introduces local variables. All values are evaluated sequentially, and assigned to vars i.e., (let ((a 1)) (let* ((a (1+ a)) (b a)) (list a b))) produces (2 2).


Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996