lispdoc - results for let* |
(let* bindings &body body) | Function: LET* ({(var [value]) | var}*) declaration* form* Similar to LET, but the variables are bound sequentially, allowing each VALUE form to reference any of the previous VARS.
|
Example:(defun make-image () (let* ((name (create-name)) (i (make-instance 'photo-image :name name))) i)) | Mentioned in: CLtL2 - 5.2.2. Lambda-Expressions CLtL2 - 7.10.2. Rules Governing the Passing of Multiple Values CLtL2 - 7.2. Generalized Variables CLtL2 - 7.5. Establishing New Variable Bindings CLtL2 - 7.8.2. General Iteration CLtL2 - 7.8.5. The ``Program Feature'' CLtL2 - A.3.1. Basic Restrictions On Lisp - Anaphoric Macros (Macro-Defining Macros) On Lisp - Common Lisp Implementation On Lisp - Functional Design On Lisp - Iteration with Multiple Values On Lisp - Operations on Lists On Lisp - When Capture Occurs PCL - manipulating the lexical environment PCL - the implementation PCL - variable basics PCL - where to go next Successful Lisp - lesson 3 |
(alexandria.0.dev:when-let* bindings &body forms) | Function: Creates new variable bindings, and conditionally executes FORMS. BINDINGS must be either single binding of the form: (variable initial-form) or a list of bindings of the form: ((variable-1 initial-form-1) (variable-2 initial-form-2) ... (variable-n initial-form-n)) Each initial-form is executed in turn, and the variable bound to the corresponding value. Initial-form expressions can refer to variables previously bound by the WHEN-LET*. Execution of WHEN-LET* stops immediately if any initial-form evaluates to NIL. If all initial-forms evaluate to true, then FORMS are executed as an implicit PROGN.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |